Skip to content

Commit

Permalink
Output Nontemporal for images
Browse files Browse the repository at this point in the history
  • Loading branch information
HildarTheDorf committed Feb 4, 2025
1 parent 5ae5c50 commit e5ad1fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SPIRV/doc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ const char* ImageChannelDataTypeString(int type)
}
}

const int ImageOperandsCeiling = 14;
const int ImageOperandsCeiling = 15;

const char* ImageOperandsString(int format)
{
Expand All @@ -649,6 +649,7 @@ const char* ImageOperandsString(int format)
case ImageOperandsVolatileTexelKHRShift: return "VolatileTexelKHR";
case ImageOperandsSignExtendShift: return "SignExtend";
case ImageOperandsZeroExtendShift: return "ZeroExtend";
case ImageOperandsNontemporalShift: return "Nontemporal";

case ImageOperandsCeiling:
default:
Expand Down
2 changes: 1 addition & 1 deletion Test/baseResults/spv.1.6.nontemporalimage.frag.out
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ spv.1.6.nontemporalimage.frag
13: 10 Load 12(u_image)
21: 20(ptr) AccessChain 18 19
22: 15(ivec2) Load 21
23: 7(fvec4) ImageRead 13 22
23: 7(fvec4) ImageRead 13 22 Nontemporal
Store 9(out_color) 23
Return
FunctionEnd

0 comments on commit e5ad1fa

Please sign in to comment.