diff options
Diffstat (limited to 'src/tests/common')
| -rw-r--r-- | src/tests/common/offscreen_render_target.cc | 3 | ||||
| -rw-r--r-- | src/tests/common/offscreen_render_target.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/common/offscreen_render_target.cc b/src/tests/common/offscreen_render_target.cc index da2fa8f..33f0ae0 100644 --- a/src/tests/common/offscreen_render_target.cc +++ b/src/tests/common/offscreen_render_target.cc @@ -17,7 +17,8 @@ OffscreenRenderTarget::OffscreenRenderTarget(WGPUInstance instance, format_(format) { // Create offscreen texture const WGPUTextureDescriptor texture_desc = { - .usage = WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_CopySrc, + .usage = WGPUTextureUsage_RenderAttachment | WGPUTextureUsage_CopySrc | + WGPUTextureUsage_TextureBinding, .dimension = WGPUTextureDimension_2D, .size = {static_cast<uint32_t>(width), static_cast<uint32_t>(height), 1}, .format = format, diff --git a/src/tests/common/offscreen_render_target.h b/src/tests/common/offscreen_render_target.h index 10c12aa..a0943db 100644 --- a/src/tests/common/offscreen_render_target.h +++ b/src/tests/common/offscreen_render_target.h @@ -15,7 +15,7 @@ class OffscreenRenderTarget { // Create an offscreen render target with specified dimensions OffscreenRenderTarget( WGPUInstance instance, WGPUDevice device, int width, int height, - WGPUTextureFormat format = WGPUTextureFormat_BGRA8Unorm); + WGPUTextureFormat format = WGPUTextureFormat_RGBA8Unorm); ~OffscreenRenderTarget(); // Accessors |
