[webkit-changes] [WebKit/WebKit] ac3c95: [WGSL] Add suport for depth textures

Tadeu Zagallo noreply at github.com
Fri Sep 22 04:30:59 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ac3c958871aafb17a65d85e6898edb4622ffaadf
      https://github.com/WebKit/WebKit/commit/ac3c958871aafb17a65d85e6898edb4622ffaadf
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-09-22 (Fri, 22 Sep 2023)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantRewriter.cpp
    M Source/WebGPU/WGSL/Constraints.cpp
    M Source/WebGPU/WGSL/GlobalVariableRewriter.cpp
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/TypeStore.cpp
    M Source/WebGPU/WGSL/TypeStore.h
    M Source/WebGPU/WGSL/Types.cpp
    M Source/WebGPU/WGSL/Types.h

  Log Message:
  -----------
  [WGSL] Add suport for depth textures
https://bugs.webkit.org/show_bug.cgi?id=261881
rdar://115842732

Reviewed by Dan Glastonbury.

Add a new TextureDepth type to the type system and expose all the kinds of depth textures.
Spec reference: https://www.w3.org/TR/WGSL/#texture-depth

* Source/WebGPU/WGSL/ConstantRewriter.cpp:
(WGSL::ConstantRewriter::materialize):
* Source/WebGPU/WGSL/Constraints.cpp:
(WGSL::concretize):
* Source/WebGPU/WGSL/GlobalVariableRewriter.cpp:
(WGSL::bindingMemberForGlobal):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::TypeChecker):
* Source/WebGPU/WGSL/TypeStore.cpp:
(WGSL::TypeStore::TypeStore):
* Source/WebGPU/WGSL/TypeStore.h:
(WGSL::TypeStore::textureDepth2dType const):
(WGSL::TypeStore::textureDepth2dArrayType const):
(WGSL::TypeStore::textureDepthCubeType const):
(WGSL::TypeStore::textureDepthCubeArrayType const):
(WGSL::TypeStore::textureDepthMultisampled2dType const):
* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::dump const):
(WGSL::Type::size const):
(WGSL::Type::alignment const):
* Source/WebGPU/WGSL/Types.h:

Canonical link: https://commits.webkit.org/268308@main




More information about the webkit-changes mailing list