Skip to content

Conversation

@alan-baker
Copy link
Contributor

  • Previously only f32 textures were allowed to be used with sample
    built-ins
  • fixed a typo in image mapping

I think it was just an oversight that the sampled type was required to be f32.

* Previously only f32 textures were allowed to be used with sample
  built-ins
* fixed a typo in image mapping
@alan-baker alan-baker added the wgsl WebGPU Shading Language Issues label Mar 9, 2021
Copy link
Contributor

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an oversight. HLSL doesn't like this, which is pretty sad.

error: cannot Sample from resource containing uint

@alan-baker
Copy link
Contributor Author

Not an oversight. HLSL doesn't like this, which is pretty sad.

error: cannot Sample from resource containing uint

Ouch ok, I'd almost be in favour only having integer types for storage images then, but I'll close this.

@alan-baker alan-baker closed this Mar 9, 2021
@alan-baker alan-baker deleted the sample-integers branch March 9, 2021 20:10
ben-clayton pushed a commit to ben-clayton/gpuweb that referenced this pull request Sep 6, 2022
This implements the F32Interval class and fundamental accuracy
functions described in my prototype,
gpuweb/cts#1402, for reworking how floating
point tests are written.

This also adds in testing that did not appear in my prototype.

There are a couple of functions that are not currently used that I
have included in this patch that have suppressions for unused-vars on
them. I included them in this patch since they are logically grouped
with this code. These surpressions will be removed in future patches.

Review discovered a bug in oneULP's implementation, which is fixed in
this PR. 

Issue gpuweb#792
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wgsl WebGPU Shading Language Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants