|
|
@@ -34,17 +34,21 @@ class WebGPUUtils {
|
|
|
|
|
|
let format;
|
|
|
|
|
|
- if ( renderContext.depthTexture !== null ) {
|
|
|
+ if ( renderContext.depth ) {
|
|
|
|
|
|
- format = this.getTextureFormatGPU( renderContext.depthTexture );
|
|
|
+ if ( renderContext.depthTexture !== null ) {
|
|
|
|
|
|
- } else if ( renderContext.depth && renderContext.stencil ) {
|
|
|
+ format = this.getTextureFormatGPU( renderContext.depthTexture );
|
|
|
|
|
|
- format = GPUTextureFormat.Depth24PlusStencil8;
|
|
|
+ } else if ( renderContext.stencil ) {
|
|
|
|
|
|
- } else if ( renderContext.depth ) {
|
|
|
+ format = GPUTextureFormat.Depth24PlusStencil8;
|
|
|
|
|
|
- format = GPUTextureFormat.Depth24Plus;
|
|
|
+ } else {
|
|
|
+
|
|
|
+ format = GPUTextureFormat.Depth24Plus;
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|