summaryrefslogtreecommitdiff
path: root/src/gpu/sequence.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/sequence.cc')
-rw-r--r--src/gpu/sequence.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/sequence.cc b/src/gpu/sequence.cc
index c81a912..f0e0356 100644
--- a/src/gpu/sequence.cc
+++ b/src/gpu/sequence.cc
@@ -226,10 +226,10 @@ void NodeRegistry::create_texture(Node& node) {
view_desc.mipLevelCount = 1;
view_desc.baseArrayLayer = 0;
view_desc.arrayLayerCount = 1;
- view_desc.aspect = (node.type == NodeType::DEPTH24 ||
- node.type == NodeType::GBUF_DEPTH32)
- ? WGPUTextureAspect_DepthOnly
- : WGPUTextureAspect_All;
+ view_desc.aspect =
+ (node.type == NodeType::DEPTH24 || node.type == NodeType::GBUF_DEPTH32)
+ ? WGPUTextureAspect_DepthOnly
+ : WGPUTextureAspect_All;
node.view = wgpuTextureCreateView(node.texture, &view_desc);
FATAL_CHECK(node.view != nullptr, "Failed to create texture view\n");