diff options
Diffstat (limited to 'src/gpu/texture_manager.h')
| -rw-r--r-- | src/gpu/texture_manager.h | 38 |
1 files changed, 18 insertions, 20 deletions
diff --git a/src/gpu/texture_manager.h b/src/gpu/texture_manager.h index 5a2b9f8..ec30c7b 100644 --- a/src/gpu/texture_manager.h +++ b/src/gpu/texture_manager.h @@ -60,20 +60,18 @@ class TextureManager { }; // GPU composite generation (multi-input textures) - void create_gpu_composite_texture(const std::string& name, - const std::string& shader_func, - const char* shader_code, - const void* uniform_data, - size_t uniform_size, - int width, int height, - const std::vector<std::string>& input_names, - SamplerType sampler = SamplerType::LinearClamp); + void create_gpu_composite_texture( + const std::string& name, const std::string& shader_func, + const char* shader_code, const void* uniform_data, size_t uniform_size, + int width, int height, const std::vector<std::string>& input_names, + SamplerType sampler = SamplerType::LinearClamp); #endif #if !defined(STRIP_ALL) // On-demand lazy generation (stripped in final builds) - WGPUTextureView get_or_generate_gpu_texture(const std::string& name, - const GpuProceduralParams& params); + WGPUTextureView + get_or_generate_gpu_texture(const std::string& name, + const GpuProceduralParams& params); #endif // Retrieves a texture view by name (returns nullptr if not found) @@ -87,20 +85,20 @@ class TextureManager { int num_input_textures; }; - WGPUComputePipeline get_or_create_compute_pipeline(const std::string& func_name, - const char* shader_code, - size_t uniform_size, - int num_input_textures = 0); + WGPUComputePipeline + get_or_create_compute_pipeline(const std::string& func_name, + const char* shader_code, size_t uniform_size, + int num_input_textures = 0); void dispatch_compute(const std::string& func_name, WGPUTexture target, - const GpuProceduralParams& params, const void* uniform_data, - size_t uniform_size); + const GpuProceduralParams& params, + const void* uniform_data, size_t uniform_size); #if !defined(STRIP_GPU_COMPOSITE) void dispatch_composite(const std::string& func_name, WGPUTexture target, - const GpuProceduralParams& params, - const void* uniform_data, size_t uniform_size, - const std::vector<WGPUTextureView>& input_views, - SamplerType sampler_type); + const GpuProceduralParams& params, + const void* uniform_data, size_t uniform_size, + const std::vector<WGPUTextureView>& input_views, + SamplerType sampler_type); #endif WGPUDevice device_; |
