diff options
| author | Yong He <yonghe@outlook.com> | 2021-04-05 13:31:05 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-05 13:31:05 -0700 |
| commit | 086ecf41fa21138899960bb9805bc8ced91690f0 (patch) | |
| tree | c98af81ffc28371a9334e71987a85f9e88bce678 /tools/gfx/command-writer.h | |
| parent | dd662f5cda97e7a6720ef526509a772a06112d4a (diff) | |
Transient root shader object. (#1782)
Diffstat (limited to 'tools/gfx/command-writer.h')
| -rw-r--r-- | tools/gfx/command-writer.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/gfx/command-writer.h b/tools/gfx/command-writer.h index 76a72edc3..e93244ed1 100644 --- a/tools/gfx/command-writer.h +++ b/tools/gfx/command-writer.h @@ -127,12 +127,10 @@ public: m_commands.add(Command(CommandName::SetPipelineState, offset)); } - void bindRootShaderObject(PipelineType pipelineType, IShaderObject* object) + void bindRootShaderObject(IShaderObject* object) { auto rootOffset = encodeObject(object); - m_commands.add(Command( - CommandName::BindRootShaderObject, - (uint32_t)pipelineType, rootOffset)); + m_commands.add(Command(CommandName::BindRootShaderObject, rootOffset)); } void uploadBufferData(IBufferResource* buffer, size_t offset, size_t size, void* data) |
