summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-29 09:56:07 -0700
committerGitHub <noreply@github.com>2024-10-29 09:56:07 -0700
commit8b3f9048cb94164a036be4ae144b2108968b65b5 (patch)
treecaccdf07086f21dfe709d6afd64e60348e7f8547 /docs
parentf65d756bff8d4c5cbc15bd0322a2ae8e6b896a21 (diff)
Use Offset instead of ConstOffset for GLSL function textureGatherOffset (#5426)
* Use Offset instead of ConstOffset for GLSL function textureGatherOffset This commit changes to use `Offset` option on OpImageGather instruction when translating `textureGatherOffset` to SPIR-V code. Interestingly GLSL allows the offset value to be a variable not constant just for the function `textureGatherOffset` while all other offset variants of texture sampling functions require the offset to be a constant value. From a few experiments, I found that the spirv-optimizer changes `Offset` to `ConstOffset` if the offset is a compile-time value. I also found that when the offset value is zero, it changes to `None` with no offset value.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions