Skip to content

Commit

Permalink
3D texture support in GLES30 -- Mikko Strandborg
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Aug 25, 2015
1 parent d8f33cc commit 97e6b5c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion hlslang/GLSLCodeGen/glslOutput.cpp
Expand Up @@ -1643,7 +1643,13 @@ bool TGlslOutputTraverser::traverseAggregate( bool preVisit, TIntermAggregate *n

case EOpTex3D:
if (argCount == 2)
writeTex( "texture3D", node, goit);
{
if (usePost120TextureLookups) {
writeTex( "texture", node, goit);
} else {
writeTex( "texture3D", node, goit);
}
}
else
{
current->addLibFunction(EOpTex3DGrad);
Expand Down
2 changes: 1 addition & 1 deletion hlslang/MachineIndependent/hlslang.y
Expand Up @@ -1827,7 +1827,7 @@ type_specifier_nonarray
SET_BASIC_TYPE($$,$1,EbtSampler2D,EbpHigh);
}
| SAMPLER3D {
SET_BASIC_TYPE($$,$1,EbtSampler3D,EbpUndefined);
SET_BASIC_TYPE($$,$1,EbtSampler3D,EbpLow);
}
| SAMPLERCUBE {
SET_BASIC_TYPE($$,$1,EbtSamplerCube,EbpUndefined);
Expand Down

0 comments on commit 97e6b5c

Please sign in to comment.