mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Rename texture.createTextureView to createView to match WebGPU
Bug: chromium:877147 Change-Id: I186fc26054cc6729c859a4161c755a1133dc0bca Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/6360 Commit-Queue: Austin Eng <enga@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
5f1d2e1c8d
commit
6f0b021dbf
@@ -135,7 +135,7 @@ void init() {
|
||||
|
||||
pipeline = device.CreateRenderPipeline(&descriptor);
|
||||
|
||||
dawn::TextureView view = texture.CreateDefaultTextureView();
|
||||
dawn::TextureView view = texture.CreateDefaultView();
|
||||
|
||||
bindGroup = utils::MakeBindGroup(device, bgl, {
|
||||
{0, sampler},
|
||||
@@ -150,7 +150,7 @@ void frame() {
|
||||
if (s.b >= 1.0f) {s.b = 0.0f;}
|
||||
|
||||
dawn::Texture backbuffer = swapchain.GetNextTexture();
|
||||
utils::ComboRenderPassDescriptor renderPass({backbuffer.CreateDefaultTextureView()},
|
||||
utils::ComboRenderPassDescriptor renderPass({backbuffer.CreateDefaultView()},
|
||||
depthStencilView);
|
||||
|
||||
static const uint64_t vertexBufferOffsets[1] = {0};
|
||||
|
||||
Reference in New Issue
Block a user