Skip to content

Commit 518a446

Browse files
committed
Add Id GetBuiltInVariable(BuiltIn builtin) to spirv editor
1 parent e86fbc1 commit 518a446

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

renderdoc/driver/shaders/spirv/spirv_editor.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ class Editor : public Processor
111111
void AddEntryGlobals(Id entry, const rdcarray<Id> &newGlobals);
112112
void ChangeEntry(Id from, Id to);
113113

114+
Id GetBuiltInVariable(BuiltIn builtin) { return builtinInputs[builtin].variable; }
114115
rdcpair<Id, Id> AddBuiltinInputLoad(OperationList &ops, ShaderStage stage, BuiltIn builtin,
115116
Id type);
116117
Id AddBuiltinInputLoad(OperationList &ops, rdcarray<Id> &addedGlobals, ShaderStage stage,

0 commit comments

Comments
 (0)