diff options
Diffstat (limited to 'src/tests/gpu')
| -rw-r--r-- | src/tests/gpu/test_post_process_helper.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/tests/gpu/test_post_process_helper.cc b/src/tests/gpu/test_post_process_helper.cc index 13fd856..08b9e49 100644 --- a/src/tests/gpu/test_post_process_helper.cc +++ b/src/tests/gpu/test_post_process_helper.cc @@ -38,15 +38,7 @@ static WGPUTexture create_post_process_texture(WGPUDevice device, int width, // Helper: Create texture view static WGPUTextureView create_texture_view(WGPUTexture texture, WGPUTextureFormat format) { - const WGPUTextureViewDescriptor view_desc = { - .format = format, - .dimension = WGPUTextureViewDimension_2D, - .baseMipLevel = 0, - .mipLevelCount = 1, - .baseArrayLayer = 0, - .arrayLayerCount = 1, - }; - return wgpuTextureCreateView(texture, &view_desc); + return gpu_create_texture_view_2d(texture, format); } // Minimal valid post-process shader for testing |
