mirror of
https://github.com/libretro/glslang.git
synced 2024-12-13 02:36:09 +00:00
Merge pull request #277 from amdrexu/bugfix3
SPV: Add capability ImageGatherExtended if necessary.
This commit is contained in:
commit
9f0cbdc22a
@ -1464,8 +1464,10 @@ Id Builder::createTextureCall(Decoration precision, Id resultType, bool sparse,
|
||||
if (parameters.offset) {
|
||||
if (isConstant(parameters.offset))
|
||||
mask = (ImageOperandsMask)(mask | ImageOperandsConstOffsetMask);
|
||||
else
|
||||
else {
|
||||
addCapability(CapabilityImageGatherExtended);
|
||||
mask = (ImageOperandsMask)(mask | ImageOperandsOffsetMask);
|
||||
}
|
||||
texArgs[numArgs++] = parameters.offset;
|
||||
}
|
||||
if (parameters.offsets) {
|
||||
|
@ -11,6 +11,7 @@ Linked fragment stage:
|
||||
|
||||
Capability Shader
|
||||
Capability Float64
|
||||
Capability ImageGatherExtended
|
||||
Capability ClipDistance
|
||||
Capability SampledRect
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
|
@ -11,6 +11,7 @@ Linked geometry stage:
|
||||
|
||||
Capability Geometry
|
||||
Capability GeometryPointSize
|
||||
Capability ImageGatherExtended
|
||||
Capability GeometryStreams
|
||||
Capability MultiViewport
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
|
Loading…
Reference in New Issue
Block a user