MCPcopy Create free account
hub / github.com/NVIDIA-RTX/NVRHI / requireExecuteState

Method requireExecuteState

src/validation/validation-commandlist.cpp:97–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95 }
96
97 bool CommandListWrapper::requireExecuteState()
98 {
99 switch (m_State)
100 {
101 case CommandListState::INITIAL:
102 error("Cannot execute a command list before it is opened and then closed");
103 return false;
104 case CommandListState::OPEN:
105 error("Cannot execute a command list before it is closed");
106 return false;
107 case CommandListState::CLOSED:
108 default:
109 break;
110 }
111
112 m_State = CommandListState::INITIAL;
113 return true;
114 }
115
116 bool CommandListWrapper::requireType(CommandQueue queueType, const char* operation) const
117 {

Callers 1

executeCommandListsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected