diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-05-21 14:44:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-05-21 14:44:09 -0400 |
| commit | c2b4c5838431e12abb6f233c459d3d6a717aad18 (patch) | |
| tree | ed11811faa1c47b71a2acb482e01990baab8f43e /tests/cross-compile/func-resource-param-array.slang.glsl | |
| parent | 7ffe6f03976c98ba0233483d0182fc0ad600fd7a (diff) | |
Hotfix/improve glsl semantic conversion (#965)
* Specify glsl semantic format - such that conversions are possible from hlsl sematics.
* Comment improvements. Give appropriate type in glsl for sv_tessfactor. Note that sv_tessfactor is not functional though.
* Work in progress for comparison of types.
* * Fix type comparison issues around the hash.
* Fix tests whos output changed with use of isTypeEqual
Diffstat (limited to 'tests/cross-compile/func-resource-param-array.slang.glsl')
| -rw-r--r-- | tests/cross-compile/func-resource-param-array.slang.glsl | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/cross-compile/func-resource-param-array.slang.glsl b/tests/cross-compile/func-resource-param-array.slang.glsl index d7f9c17bc..e9d1b5a97 100644 --- a/tests/cross-compile/func-resource-param-array.slang.glsl +++ b/tests/cross-compile/func-resource-param-array.slang.glsl @@ -26,14 +26,12 @@ #define g_c_i _S10 #define g_c_j _S11 -#define tid _S12 +#define tmp_f_a_ii _S12 +#define tmp_f_a_jj _S13 -#define tmp_f_a_ii _S13 -#define tmp_f_a_jj _S14 - -#define tmp_f_b _S15 -#define tmp_g_b _S16 -#define tmp_g_c _S17 +#define tmp_f_b _S14 +#define tmp_g_b _S15 +#define tmp_g_c _S16 layout(std430, binding = 0) buffer a_block { int _data[]; @@ -71,11 +69,9 @@ layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in; void main() { - uvec3 tid = uvec3(gl_GlobalInvocationID); - - uint ii = tid.x; - uint jj = tid.y; - uint kk = tid.z; + uint ii = gl_GlobalInvocationID.x; + uint jj = gl_GlobalInvocationID.y; + uint kk = gl_GlobalInvocationID.z; int tmp_f_a_ii = f_a(ii); |
