15#include "webgpu/webgpu_cpp.h"
27 auto recorder = context->makeRecorder();
32 textureInfo.
fFormat = wgpu::TextureFormat::RGBA8Unorm;
33 textureInfo.
fUsage = wgpu::TextureUsage::TextureBinding;
35 auto beTexture = recorder->createBackendTexture(
kSize, textureInfo);
37 recorder->deleteBackendTexture(beTexture);
40 textureInfo.
fUsage |= wgpu::TextureUsage::RenderAttachment;
41 beTexture = recorder->createBackendTexture(
kSize, textureInfo);
43 recorder->deleteBackendTexture(beTexture);
51 auto recorder = context->makeRecorder();
56 textureInfo.
fFormat = wgpu::TextureFormat::RGBA8Unorm;
57 textureInfo.
fUsage = wgpu::TextureUsage::TextureBinding;
67 beTexture2 = beTexture;
72 recorder->deleteBackendTexture(beTexture);
DEF_GRAPHITE_TEST_FOR_DAWN_CONTEXT(DawnBackendTextureSimpleCreationTest, reporter, context, testContext)
#define REPORTER_ASSERT(r, cond,...)
wgpu::TextureFormat fFormat
wgpu::TextureUsage fUsage