You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2885: Hardcoded immutable samplers in Metal r=grovesNL a=kvark
Also adds unnormalized sampling to HAL.
Blocked on spirv_cross 0.15.0 release.
Fixes#2837
Partially fulfills #2883
PR checklist:
- [x] `make` succeeds (on *nix)
- [x] `make reftests` succeeds
- [x] tested examples with the following backends: metal
- [ ] `rustfmt` run on changed code
Co-authored-by: Dzmitry Malyshau <[email protected]>
borsbot
added a commit
that referenced
this issue
Jul 5, 2019
2885: Hardcoded immutable samplers in Metal r=grovesNL a=kvark
Also adds unnormalized sampling to HAL.
Blocked on spirv_cross 0.15.0 release.
Fixes#2837
Partially fulfills #2883
PR checklist:
- [x] `make` succeeds (on *nix)
- [x] `make reftests` succeeds
- [x] tested examples with the following backends: metal
- [ ] `rustfmt` run on changed code
Co-authored-by: Dzmitry Malyshau <[email protected]>
Now that #2885 has landed, we have the API in place. We need to find a way to support it on DX12, at least, and also look into DX11 and GL if possible.
kvark
changed the title
Support for unnormalized coordinates in samplers
[dx12] Support for unnormalized coordinates in samplers
Jul 5, 2019
provide a root constant (32 bit) with each bit corresponding to a sampler. Bit = 1 if the coordinates are unnormalized.
in the generated HLSL, whenever there is a sampling operation, we can insert code that checks the relevant bit. If the bit is set, the injected code would call GetDimensions on the texture, and use it to produce the normalized coordinates prior to sampling.
Vulkan sampler descriptor has this field:
unnormalizedCoordinates
.The task here is to add it to our API and do a basic investigation on where it can't be supported.
The text was updated successfully, but these errors were encountered: