File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -1890,7 +1890,12 @@ var LibraryWebGPU = {
1890
1890
1891
1891
wgpuComputePassEncoderEnd : function ( passId ) {
1892
1892
var pass = WebGPU . mgrComputePassEncoder . get ( passId ) ;
1893
- pass [ "end" ] ( ) ;
1893
+ // TODO(shrekshao): remove once this API change moves to stable (e.g. in Chrome)
1894
+ if ( pass [ "end" ] ) {
1895
+ pass [ "end" ] ( ) ;
1896
+ } else {
1897
+ pass [ "endPass" ] ( ) ;
1898
+ }
1894
1899
} ,
1895
1900
1896
1901
// wgpuRenderPass
@@ -2024,7 +2029,12 @@ var LibraryWebGPU = {
2024
2029
2025
2030
wgpuRenderPassEncoderEnd : function ( passId ) {
2026
2031
var pass = WebGPU . mgrRenderPassEncoder . get ( passId ) ;
2027
- pass [ "end" ] ( ) ;
2032
+ // TODO(shrekshao): remove once this API change moves to stable (e.g. in Chrome)
2033
+ if ( pass [ "end" ] ) {
2034
+ pass [ "end" ] ( ) ;
2035
+ } else {
2036
+ pass [ "endPass" ] ( ) ;
2037
+ }
2028
2038
} ,
2029
2039
2030
2040
// Render bundle encoder
You can’t perform that action at this time.
0 commit comments