Skip to content

Commit 900aee0

Browse files
authored
WebGPU: fix sentinel handling for depthSlice (#21077)
1 parent 6faed83 commit 900aee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library_webgpu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1610,7 +1610,7 @@ var LibraryWebGPU = {
16101610
return undefined;
16111611
}
16121612

1613-
var depthSlice = {{{ gpu.makeGetU32('caPtr', C_STRUCTS.WGPURenderPassColorAttachment.depthSlice) }}};
1613+
var depthSlice = {{{ makeGetValue('caPtr', C_STRUCTS.WGPURenderPassColorAttachment.depthSlice, 'i32') }}};
16141614
{{{ gpu.convertSentinelToUndefined('depthSlice') }}}
16151615

16161616
var loadOpInt = {{{ gpu.makeGetU32('caPtr', C_STRUCTS.WGPURenderPassColorAttachment.loadOp) }}};

0 commit comments

Comments
 (0)