summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-06-18 17:09:35 -0400
committerGitHub <noreply@github.com>2021-06-18 17:09:35 -0400
commit0afa24a3fe7d0e1787cc909f9c7641f477c30e5c (patch)
tree08724f28641b221167a03ca2192ee8297328becd /examples
parent89051251016be7d3798c0b9586c6db7b4ed5f21d (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 'examples')
-rw-r--r--examples/hello-world/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/hello-world/main.cpp b/examples/hello-world/main.cpp
index e635b3a48..db243749b 100644
--- a/examples/hello-world/main.cpp
+++ b/examples/hello-world/main.cpp
@@ -115,8 +115,9 @@ int HelloWorldExample::createComputePipelineFromShader()
slang::TargetDesc targetDesc = {};
targetDesc.format = SLANG_SPIRV;
targetDesc.profile = slangGlobalSession->findProfile("glsl440");
- sessionDesc.targetCount = 1;
+
sessionDesc.targets = &targetDesc;
+ sessionDesc.targetCount = 1;
ComPtr<slang::ISession> session;
RETURN_ON_FAIL(slangGlobalSession->createSession(sessionDesc, session.writeRef()));