diff options
| author | Sai Praveen Bangaru <31557731+saipraveenb25@users.noreply.github.com> | 2024-11-13 19:50:52 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-13 16:50:52 -0800 |
| commit | 5cb960a72449dad36594e8ad2bfa899f5aaa11be (patch) | |
| tree | 5ee550e8a50ccc2833b8e6fdf139a5b6da3294c2 /source/slang-wasm/slang-wasm.cpp | |
| parent | f7149b94847a91f9f1f364e79f1be750aaf90191 (diff) | |
Fix WGSL emit for '&' and add bindings for thread group size (#5557)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang-wasm/slang-wasm.cpp')
| -rw-r--r-- | source/slang-wasm/slang-wasm.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/slang-wasm/slang-wasm.cpp b/source/slang-wasm/slang-wasm.cpp index 10fc86029..a1ce2920d 100644 --- a/source/slang-wasm/slang-wasm.cpp +++ b/source/slang-wasm/slang-wasm.cpp @@ -442,6 +442,18 @@ TypeLayoutReflection* ProgramLayout::getGlobalParamsTypeLayout() return (slang::wgsl::TypeLayoutReflection*)(interface()->getGlobalParamsTypeLayout()); } +EntryPointReflection* ProgramLayout::findEntryPointByName(std::string name) +{ + return (slang::wgsl::EntryPointReflection*)(interface()->findEntryPointByName(name.c_str())); +} + +EntryPointReflection::ThreadGroupSize EntryPointReflection::getComputeThreadGroupSize() +{ + SlangUInt size[3]; + interface()->getComputeThreadGroupSize(3, size); + return {size[0], size[1], size[2]}; +} + BindingType TypeLayoutReflection::getDescriptorSetDescriptorRangeType( unsigned int setIndex, unsigned int rangeIndex) |
