summaryrefslogtreecommitdiff
path: root/tools/gfx-util
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-05-25 15:22:39 -0700
committerGitHub <noreply@github.com>2021-05-25 15:22:39 -0700
commit89f67d9c626fa193dba4adafcb54e46b13aa5e98 (patch)
tree769e11debb4194595a99e484d69af7b3704389c3 /tools/gfx-util
parentba24264275c640e0ac3732f0f5720e1f5816cded (diff)
Rework shader object specialization control interface. (#1857)
Diffstat (limited to 'tools/gfx-util')
-rw-r--r--tools/gfx-util/shader-cursor.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/gfx-util/shader-cursor.h b/tools/gfx-util/shader-cursor.h
index 7512c62ee..41d0b3945 100644
--- a/tools/gfx-util/shader-cursor.h
+++ b/tools/gfx-util/shader-cursor.h
@@ -92,6 +92,11 @@ struct ShaderCursor
return m_baseObject->setObject(m_offset, object);
}
+ SlangResult setSpecializationArgs(const slang::SpecializationArg* args, uint32_t count) const
+ {
+ return m_baseObject->setSpecializationArgs(m_offset, args, count);
+ }
+
SlangResult setResource(IResourceView* resourceView) const
{
return m_baseObject->setResource(m_offset, resourceView);