WGSL now requires casting before >= I guess

This commit is contained in:
Rezmason
2022-11-01 08:07:08 -07:00
parent acc21ef1f4
commit 316d740322
6 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ fn gaussianPDF(x : f32) -> f32 {
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
var coord = vec2<i32>(input.id.xy);
var coord = vec2<u32>(input.id.xy);
var outputSize = textureDimensions(outputTex);
if (coord.x >= outputSize.x) {

View File

@@ -22,7 +22,7 @@ struct ComputeInput {
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
var coord = vec2<i32>(input.id.xy);
var coord = vec2<u32>(input.id.xy);
var outputSize = textureDimensions(outputTex);
if (coord.x >= outputSize.x) {

View File

@@ -24,7 +24,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
var unused = config.unused;
// Resolve the invocation ID to a texel coordinate
var coord = vec2<i32>(input.id.xy);
var coord = vec2<u32>(input.id.xy);
var screenSize = textureDimensions(tex);
if (coord.x >= screenSize.x) {

View File

@@ -43,7 +43,7 @@ fn getBrightness(uv : vec2<f32>, intensity : f32) -> vec4<f32> {
var unused = config.unused;
// Resolve the invocation ID to a texel coordinate
var coord = vec2<i32>(input.id.xy);
var coord = vec2<u32>(input.id.xy);
var screenSize = textureDimensions(tex);
if (coord.x >= screenSize.x) {

View File

@@ -48,7 +48,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
// Resolve the invocation ID to a texel coordinate
var coord = vec2<i32>(input.id.xy);
var coord = vec2<u32>(input.id.xy);
var screenSize = textureDimensions(tex);
if (coord.x >= screenSize.x) {

View File

@@ -44,7 +44,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
// Resolve the invocation ID to a texel coordinate
var coord = vec2<i32>(input.id.xy);
var coord = vec2<u32>(input.id.xy);
var screenSize = textureDimensions(tex);
if (coord.x >= screenSize.x) {