summaryrefslogtreecommitdiff
path: root/src/gpu/texture_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/texture_manager.h')
-rw-r--r--src/gpu/texture_manager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpu/texture_manager.h b/src/gpu/texture_manager.h
index 0cffe0c..b2dea84 100644
--- a/src/gpu/texture_manager.h
+++ b/src/gpu/texture_manager.h
@@ -46,6 +46,10 @@ class TextureManager {
// GPU procedural generation
void create_gpu_noise_texture(const std::string& name,
const GpuProceduralParams& params);
+ void create_gpu_perlin_texture(const std::string& name,
+ const GpuProceduralParams& params);
+ void create_gpu_grid_texture(const std::string& name,
+ const GpuProceduralParams& params);
#if !defined(STRIP_ALL)
// On-demand lazy generation (stripped in final builds)
@@ -59,8 +63,14 @@ class TextureManager {
private:
void dispatch_noise_compute(WGPUTexture target,
const GpuProceduralParams& params);
+ void dispatch_perlin_compute(WGPUTexture target,
+ const GpuProceduralParams& params);
+ void dispatch_grid_compute(WGPUTexture target,
+ const GpuProceduralParams& params);
WGPUDevice device_;
WGPUQueue queue_;
std::map<std::string, GpuTexture> textures_;
WGPUComputePipeline noise_compute_pipeline_ = nullptr;
+ WGPUComputePipeline perlin_compute_pipeline_ = nullptr;
+ WGPUComputePipeline grid_compute_pipeline_ = nullptr;
};