mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-18 22:29:28 -07:00
WGSL now requires casting before >= I guess
This commit is contained in:
@@ -22,7 +22,7 @@ fn gaussianPDF(x : f32) -> f32 {
|
|||||||
|
|
||||||
@compute @workgroup_size(32, 1, 1) fn computeMain(input : 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);
|
var outputSize = textureDimensions(outputTex);
|
||||||
|
|
||||||
if (coord.x >= outputSize.x) {
|
if (coord.x >= outputSize.x) {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ struct ComputeInput {
|
|||||||
|
|
||||||
@compute @workgroup_size(32, 1, 1) fn computeMain(input : 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);
|
var outputSize = textureDimensions(outputTex);
|
||||||
|
|
||||||
if (coord.x >= outputSize.x) {
|
if (coord.x >= outputSize.x) {
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
|
|||||||
var unused = config.unused;
|
var unused = config.unused;
|
||||||
|
|
||||||
// Resolve the invocation ID to a texel coordinate
|
// 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);
|
var screenSize = textureDimensions(tex);
|
||||||
|
|
||||||
if (coord.x >= screenSize.x) {
|
if (coord.x >= screenSize.x) {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ fn getBrightness(uv : vec2<f32>, intensity : f32) -> vec4<f32> {
|
|||||||
var unused = config.unused;
|
var unused = config.unused;
|
||||||
|
|
||||||
// Resolve the invocation ID to a texel coordinate
|
// 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);
|
var screenSize = textureDimensions(tex);
|
||||||
|
|
||||||
if (coord.x >= screenSize.x) {
|
if (coord.x >= screenSize.x) {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
|
|||||||
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
|
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
|
||||||
|
|
||||||
// Resolve the invocation ID to a texel coordinate
|
// 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);
|
var screenSize = textureDimensions(tex);
|
||||||
|
|
||||||
if (coord.x >= screenSize.x) {
|
if (coord.x >= screenSize.x) {
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ fn getBrightness(uv : vec2<f32>) -> vec4<f32> {
|
|||||||
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
|
@compute @workgroup_size(32, 1, 1) fn computeMain(input : ComputeInput) {
|
||||||
|
|
||||||
// Resolve the invocation ID to a texel coordinate
|
// 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);
|
var screenSize = textureDimensions(tex);
|
||||||
|
|
||||||
if (coord.x >= screenSize.x) {
|
if (coord.x >= screenSize.x) {
|
||||||
|
|||||||
Reference in New Issue
Block a user