summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/gpu.h')
-rw-r--r--src/gpu/gpu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gpu.h b/src/gpu/gpu.h
index b52d6ab..74e0eb7 100644
--- a/src/gpu/gpu.h
+++ b/src/gpu/gpu.h
@@ -99,6 +99,9 @@ TextureWithView gpu_create_storage_texture_2d(WGPUDevice device, uint32_t width,
WGPUTextureFormat format);
WGPUTextureView gpu_create_mip_view(WGPUTexture texture,
WGPUTextureFormat format, uint32_t mip_level);
+WGPUTextureView gpu_create_texture_view_2d(WGPUTexture texture,
+ WGPUTextureFormat format,
+ uint32_t mip_levels = 1);
ComputePass gpu_create_compute_pass(WGPUDevice device, const char* shader_code,
ResourceBinding* bindings,
int num_bindings);