(framebuffer)
| 3702 | } |
| 3703 | |
| 3704 | _getWebGPUColorFormat(framebuffer) { |
| 3705 | if (framebuffer.format === constants.FLOAT) { |
| 3706 | return framebuffer.channels === RGBA ? 'rgba32float' : 'rgba32float'; |
| 3707 | } else if (framebuffer.format === constants.HALF_FLOAT) { |
| 3708 | return framebuffer.channels === RGBA ? 'rgba16float' : 'rgba16float'; |
| 3709 | } else { |
| 3710 | // Framebuffer with _useCanvasFormat should match canvas presentation format |
| 3711 | if (framebuffer._useCanvasFormat) { |
| 3712 | return this.presentationFormat; |
| 3713 | } |
| 3714 | // Other framebuffers use standard RGBA format |
| 3715 | return framebuffer.channels === RGBA ? 'rgba8unorm' : 'rgba8unorm'; |
| 3716 | } |
| 3717 | } |
| 3718 | |
| 3719 | _getWebGPUDepthFormat(framebuffer) { |
| 3720 | if (framebuffer._useCanvasFormat) { |
no outgoing calls
no test coverage detected