| 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 | { |