mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 18:29:23 +00:00
Remove explicit storage class from samplers/textures
Tint automatically infers a storage class of `handle` for these types of variable, as per the WGSL spec. Explicitly specifying a storage class for them will soon become an error. Bug: tint:332 Change-Id: Ib67e44a5afcdd364470488fd4b456a2b42304daa Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/41402 Commit-Queue: Austin Eng <enga@chromium.org> Auto-Submit: James Price <jrprice@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
b417919516
commit
7e80cce1a9
@@ -397,7 +397,7 @@ TEST_F(RenderPipelineValidationTest, TextureComponentTypeCompatibility) {
|
||||
|
||||
std::ostringstream stream;
|
||||
stream << R"(
|
||||
[[group(0), binding(0)]] var<uniform_constant> myTexture : texture_2d<)"
|
||||
[[group(0), binding(0)]] var myTexture : texture_2d<)"
|
||||
<< kScalarTypes[i] << R"(>;
|
||||
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
@@ -446,7 +446,7 @@ TEST_F(RenderPipelineValidationTest, TextureViewDimensionCompatibility) {
|
||||
|
||||
std::ostringstream stream;
|
||||
stream << R"(
|
||||
[[group(0), binding(0)]] var<uniform_constant> myTexture : )"
|
||||
[[group(0), binding(0)]] var myTexture : )"
|
||||
<< kTextureKeywords[i] << R"(<f32>;
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
})";
|
||||
|
||||
Reference in New Issue
Block a user