mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-07-16 01:56:09 +00:00
The new tint::transform::[Spirv,Hlsl,Msl] transforms sanitize the tint::Program for the given backend. The tint::transform::Spirv transform handles edge cases for sample masks (crbug.com/tint/372). We can now enable these tests. Rework dawn_native::[opengl,vulkan]::ShaderModule::Initialize() so that transforms are applied *before* calling ShaderModuleBase::InitializeBase(). This is done as InitializeBase() wants to validate the SPIR-V, which requires the pre-processing of tint::transform::Spirv. InitializeBase() also performs shader reflection which needs to be performed on the post-transformed program for the information to be correct. Bug: tint:372 Change-Id: I4c96ce89b6ae286972549d8c7efe59e77c469063 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/42223 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com>