mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +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
@@ -104,8 +104,8 @@ void init() {
|
||||
|
||||
wgpu::ShaderModule fsModule = utils::CreateShaderModuleFromWGSL(device, R"(
|
||||
[[builtin(frag_coord)]] var<in> FragCoord : vec4<f32>;
|
||||
[[group(0), binding(0)]] var<uniform_constant> mySampler: sampler;
|
||||
[[group(0), binding(1)]] var<uniform_constant> myTexture : texture_2d<f32>;
|
||||
[[group(0), binding(0)]] var mySampler: sampler;
|
||||
[[group(0), binding(1)]] var myTexture : texture_2d<f32>;
|
||||
|
||||
[[location(0)]] var<out> FragColor : vec4<f32>;
|
||||
[[stage(fragment)]] fn main() -> void {
|
||||
|
||||
Reference in New Issue
Block a user