diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2020-09-23 20:49:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 20:49:35 -0700 |
| commit | fd2ac531c0fcb05bba421184b7443dc034281322 (patch) | |
| tree | 13ea22195c0e075d8e4012b307e85ef50168f484 /source/slang/slang-preprocessor.cpp | |
| parent | 895405212aa286701031a4f62b6904938105411c (diff) | |
Fix GLSL output for byte-address loads of vectors (#1558)
While working on #1557, it became clear that something was going wrong when using `*ByteAddressBuffer.Load<T>` to load a vector type on GLSL/SPIR-V targets.
The root problem was that the IR-level layout logic (which computes the "natural" layout of a type) had not yet been extended to handle vectors. The fix is simple enough, but it highlights the fact that we probably need to go ahead and "complete" that layout logic sooner or later.
This change includes a test case that covers the behavior added here, as well as the case that #1557 fixes. Unfortunately, due to CI system limitations, the HLSL/dxc part of the test is not yet enabled.
Diffstat (limited to 'source/slang/slang-preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
