Skip to content

Commit 5ce4fa6

Browse files
authored
WebGPURenderer: Rename .getRawShaderAsync() to .getShaderAsync() (#29010)
1 parent 1e47409 commit 5ce4fa6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/webgpu_tsl_editor.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@
181181

182182
if ( options.output === 'WGSL' ) {
183183

184-
rawShader = await renderer.debug.getRawShaderAsync( scene, camera, mesh );
184+
rawShader = await renderer.debug.getShaderAsync( scene, camera, mesh );
185185

186186

187187
} else if ( options.output === 'GLSL ES 3.0' ) {
188188

189-
rawShader = await webGLRenderer.debug.getRawShaderAsync( scene, camera, mesh );
189+
rawShader = await webGLRenderer.debug.getShaderAsync( scene, camera, mesh );
190190

191191
}
192192

src/renderers/common/Renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class Renderer {
148148
this.debug = {
149149
checkShaderErrors: true,
150150
onShaderError: null,
151-
getRawShaderAsync: async ( scene, camera, object ) => {
151+
getShaderAsync: async ( scene, camera, object ) => {
152152

153153
await this.compileAsync( scene, camera );
154154

0 commit comments

Comments
 (0)