diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2021-06-18 17:09:35 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-18 17:09:35 -0400 |
| commit | 0afa24a3fe7d0e1787cc909f9c7641f477c30e5c (patch) | |
| tree | 08724f28641b221167a03ca2192ee8297328becd /tools/gfx | |
| parent | 89051251016be7d3798c0b9586c6db7b4ed5f21d (diff) | |
StructTag versioning (#1888)
* #include an absolute path didn't work - because paths were taken to always be relative.
* WIP Abi struct.
* Use AbiSystem on SessionDesc.
* Use mask/shift constants.
* Fix issue causing warning on linux.
* Abi -> Api.
* Fix typo.
* Refactor to use StructTag.
* Mechanism to be able to follow fields.
* Field adding is working.
* WIP with StructTagConverter.
* First pass of StructTag appears to work. Still needs diagnostics.
* Small tidy up around Field.
* Use bit field to record what fields are recorded to remove allocation around the m_stack.
Use ScopeStack for RAII.
* Return SlangResult instead of pointers.
* Use SlangResult with copy.
* Split StructTagConverter implementations.
* Fix some bugs around lazy converting.
* First pass at unit test for StructTag.
* Testing StructTag going backwards in time.
* First pass as StructTag diagnostics.
* Make Traits a namespace.
* Fix some issues with Traits not being a class.
* Fix 32 bit warning.
Diffstat (limited to 'tools/gfx')
| -rw-r--r-- | tools/gfx/slang-context.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/gfx/slang-context.h b/tools/gfx/slang-context.h index 39a457cf6..0a878e0f5 100644 --- a/tools/gfx/slang-context.h +++ b/tools/gfx/slang-context.h @@ -41,8 +41,10 @@ namespace gfx targetDesc.floatingPointMode = desc.floatingPointMode; targetDesc.lineDirectiveMode = desc.lineDirectiveMode; targetDesc.flags = desc.targetFlags; - slangSessionDesc.targetCount = 1; + slangSessionDesc.targets = &targetDesc; + slangSessionDesc.targetCount = 1; + SLANG_RETURN_ON_FAIL(globalSession->createSession(slangSessionDesc, session.writeRef())); return SLANG_OK; } |
