summaryrefslogtreecommitdiff
path: root/chromium/third_party/dawn/examples/CubeReflection.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/dawn/examples/CubeReflection.cpp')
-rw-r--r--chromium/third_party/dawn/examples/CubeReflection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/third_party/dawn/examples/CubeReflection.cpp b/chromium/third_party/dawn/examples/CubeReflection.cpp
index 61e363c3661..becec8728b4 100644
--- a/chromium/third_party/dawn/examples/CubeReflection.cpp
+++ b/chromium/third_party/dawn/examples/CubeReflection.cpp
@@ -262,7 +262,7 @@ void frame() {
glm::vec3(0.0f, 1.0f, 0.0f)
);
- cameraBuffer.SetSubData(0, sizeof(CameraData), &cameraData);
+ queue.WriteBuffer(cameraBuffer, 0, &cameraData, sizeof(CameraData));
wgpu::TextureView backbufferView = swapchain.GetCurrentTextureView();
utils::ComboRenderPassDescriptor renderPass({backbufferView}, depthStencilView);