mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-29 09:34:09 +01:00
Without the suffix, `Expression::Literal(Literal::F32)` expressions get written without any suffix on the number, meaning that they get re-parsed as `AbstractFloat` values. In theory, this should always be fine, but since we don't actually support abstract types yet in all the places we should, having them appear in the output causes validation problems. See also: #4863, which did the same for `i32` literals.
16 lines
384 B
WebGPU Shading Language
16 lines
384 B
WebGPU Shading Language
@group(0) @binding(0)
|
|
var Texture: texture_2d<f32>;
|
|
@group(0) @binding(1)
|
|
var Sampler: sampler;
|
|
|
|
fn test(Passed_Texture: texture_2d<f32>, Passed_Sampler: sampler) -> vec4<f32> {
|
|
let _e5 = textureSample(Passed_Texture, Passed_Sampler, vec2<f32>(0f, 0f));
|
|
return _e5;
|
|
}
|
|
|
|
@fragment
|
|
fn main() -> @location(0) vec4<f32> {
|
|
let _e2 = test(Texture, Sampler);
|
|
return _e2;
|
|
}
|