From 0afa24a3fe7d0e1787cc909f9c7641f477c30e5c Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Fri, 18 Jun 2021 17:09:35 -0400 Subject: 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. --- tools/gfx/slang-context.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/gfx') 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; } -- cgit v1.2.3