MCPcopy Index your code
hub / github.com/processing/p5.js / _getWebGPUDepthFormat

Method _getWebGPUDepthFormat

src/webgpu/p5.RendererWebGPU.js:3719–3728  ·  view source on GitHub ↗
(framebuffer)

Source from the content-addressed store, hash-verified

3717 }
3718
3719 _getWebGPUDepthFormat(framebuffer) {
3720 if (framebuffer._useCanvasFormat) {
3721 return this.depthFormat;
3722 }
3723 if (framebuffer.useStencil) {
3724 return framebuffer.depthFormat === constants.FLOAT ? 'depth32float-stencil8' : 'depth24plus-stencil8';
3725 } else {
3726 return framebuffer.depthFormat === constants.FLOAT ? 'depth32float' : 'depth24plus';
3727 }
3728 }
3729
3730 _deleteFramebufferTexture(texture) {
3731 this.flushDraw();

Callers 2

_shaderOptionsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected