Results 545 comments of David Neto

Thanks to Twitter user [dithermaster](https://twitter.com/dithermaster) for pointing out my error here: > the integer coordinate in each dimension is clamped from 0 through (size-1) (i.e. the texel just before the...

A program that uses asin(x) where x is 2 is a faulty program. The implementation should tell tell the shader author that their program is faulty. So asin(2) should be...

We should take advantage of [indeterminate values](https://gpuweb.github.io/gpuweb/wgsl/#indeterminate-values) now that they are in the spec. > In limited cases, an evaluation of a [runtime expression](https://gpuweb.github.io/gpuweb/wgsl/#runtime-expression) can occur using unsupported values for...

Memory locations section starts "Memory consists of a set of distinct locations. Each memory location is 8-bits in size." The alignment, size, and stride descriptions talk about "bytes", which is...

To be concrete about the requirement: - some texture formats are not filterable - e.g. those with 32-bit float component are not filterable on Vulkan. See VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT - a sampler...

WGSL already reserves `using` Perl module system uses: `import`, `require`, `package` ECMAScript uses `import` `export` and also secondary words `from` and `as`.

In [today's WGSL meeting](https://docs.google.com/document/d/1DBiWJJZjZOJaZqZ6K85Y0dNCY8uF28rtwY382Hwtr1w/edit#), @pow2clk suggested reserving all the keywords in several languages, including C++ Rust, ECMAScript. I'll make a PR

The PR doesn't reserve words used in other shader languages. That would be an obvious followup.

A third option is to make the translators from WGSL to other languages do the conversion at "compile" time. This might be more complexity than we want. I don't know...

You could see doing something like the following in the constants-and-globals section of SPIR-V: %ivec2value = OpConstantComposite %v2int %int_0 %int_1 %converted = OpSpecConstantOp %v2float ConvertSToF %ivec2value That works in Kernel...