https://github.com/shader-slang/slang

sort by:
Revision Author Date Message Commit Date
c181d43 Merge branch 'master' into glsl 13 November 2023, 18:12:16 UTC
c71b127 Fix Phi simplification bug (#3325) Fixes https://github.com/shader-slang/slang/issues/3323 13 November 2023, 17:02:08 UTC
f9a7fa8 Fix array type syntax. 12 November 2023, 21:54:45 UTC
674b242 Allow `int[3] x` syntax. 11 November 2023, 01:10:23 UTC
531d427 Add more glsl intrinsics, add stage into to var layout. 11 November 2023, 00:27:49 UTC
a7760f5 Parse modifiers in for loop init var declr. 10 November 2023, 23:01:53 UTC
0952a60 Add `matrixCompMult`. 10 November 2023, 22:17:31 UTC
db4607a overide operator * for matrix/vector multiplication. 10 November 2023, 22:13:16 UTC
20580f1 Merge remote-tracking branch 'official/master' into glsl 10 November 2023, 21:55:32 UTC
011d428 Cleanup builtin arithmetic interfaces. (#3317) * wip: clean up IArithmetic * wip. * Cleanup builtin arithmetic interfaces. * Fix. * Fixes. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 10 November 2023, 21:55:14 UTC
b3af7cd Skip `#extension` lines. 10 November 2023, 21:39:18 UTC
e6aa3da Add struct/array constructor syntax. 10 November 2023, 20:54:59 UTC
3c8b7ea Add more builtin input/output and texture intrinsics. 10 November 2023, 19:56:43 UTC
3fe6762 Fix win32 compile error. 10 November 2023, 01:58:51 UTC
fd97c5e Fix test. 10 November 2023, 01:43:26 UTC
c659dd4 Fix. 10 November 2023, 01:26:50 UTC
8030516 Allow HLSL semantic on global variables. 10 November 2023, 01:07:20 UTC
95eab20 update test result. 09 November 2023, 23:32:15 UTC
fcbd3d3 Synthesize entrypoint layout from global inout vars. 09 November 2023, 23:11:53 UTC
5a028fb do not mark out globals as params 09 November 2023, 14:20:00 UTC
94658cc Bump .gitignore 09 November 2023, 14:19:31 UTC
71f4da5 Remove generated file from repo 09 November 2023, 14:19:20 UTC
bd6f35f Complete vector and matrix types for glsl 09 November 2023, 13:56:59 UTC
063a7a9 Automatically import `glsl` module for compatiblity. 09 November 2023, 01:13:41 UTC
a4f1cae Parse and ignore precision modifiers. 08 November 2023, 23:21:03 UTC
c8ab238 Add compile flag for enabling glsl 08 November 2023, 15:47:01 UTC
38fdd85 Better l-value interpretation for glsl interface blocks 08 November 2023, 15:30:55 UTC
f5b5756 Better l-value interpretation for glsl interface blocks 08 November 2023, 15:15:31 UTC
cd74e75 spelling 08 November 2023, 15:14:39 UTC
2fa1fe8 Parse (and ignore) glsl version directives 08 November 2023, 12:57:22 UTC
9a25c72 Parse glsl local size layout declarations 08 November 2023, 12:57:01 UTC
76d9c48 Parse glsl buffer blocks to GLSLInterfaceBlockDecl 08 November 2023, 12:55:59 UTC
bfd3f39 Fix HitObject::GetInstanceIndex/ID() for glsl/spirv (#3315) Co-authored-by: Yong He <yonghe@outlook.com> 08 November 2023, 03:04:36 UTC
0f2578d Add `IRThisTypeWitness` to stand in for witness lookups inside an interface definition. (#3316) Co-authored-by: Yong He <yhe@nvidia.com> 08 November 2023, 03:03:52 UTC
4219419 CUDA: Fixes for NVRTC 12.x and warp mask ambiguity; adds CC 8.x warp reduction intrinsics. (#3314) * CUDA: Fixes for NVRTC 12.x, warp mask ambiguity; add reduction partial specializations. * Fixes running NVRTC on CUDA 12 without a specified profile (used in testing, e.g. `slang-test -api cuda -category wave`) * Fixes mask ambiguity between getting the lane index from threadId.x and a full mask of threads. * Adds partial specializations for compute capability 8.x warp reduction intrinsics. * Fix formatting 07 November 2023, 19:47:18 UTC
46529df Fix ICE when lowering an associatedtype declref from an derived interface. (#3312) * Fix ICE when lowering an associatedtype declref from an derived interface. * Fixes. * Fix test. * Fix GLSL/SPIRV image subscript swizzle store regression. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 06 November 2023, 22:40:38 UTC
da9e0ad Correctly pass values from the conditional block to the loop during inversion (#3311) Co-authored-by: Yong He <yonghe@outlook.com> 06 November 2023, 21:21:49 UTC
79677b8 Add SubgroupQuad intrinsics for glsl/spirv. (#3310) * Add SubgroupQuad intrinsics for glsl/spirv. * Fix. * Add test for quad intrinsics. * fix. * improve diagnostics text. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 04 November 2023, 00:10:09 UTC
111de4d Update 07-autodiff.md 03 November 2023, 21:40:18 UTC
cc22270 Add more diagnostics on invalid custom derivative use. (#3309) * Add more diagnostics on invalid custom derivative use. * cleanup. --------- Co-authored-by: Yong He <yhe@nvidia.com> 03 November 2023, 19:49:23 UTC
911a440 Fix crash when writing to `no_diff` out parameter. (#3308) * Fix crash when writing to `no_diff` out parameter. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 02 November 2023, 21:54:22 UTC
72e95f2 Several spirv intrinsics and small fix (#3307) * spirv intrinsic for faceforward * spirv intrinsic for fwidth * spirv intrinsic for modf * spirv intrinsic for nonuniformresourceindex * spirv intrinsic for transpose * Make sure address space matches for OpAccessChain * Correct placement for OpDecorate instructions in spirv asm blocks 02 November 2023, 20:00:16 UTC
e712ebd Add mnemonic parsing for `intrinsic_type` modifier. (#3306) Co-authored-by: Yong He <yhe@nvidia.com> 02 November 2023, 05:49:30 UTC
6aca381 Parameter binding and gfx fixes. (#3302) * Parameter binding and gfx fixes. * Add diagnostics on entry point parameters. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 02 November 2023, 04:42:12 UTC
532c432 Add OpDot for spirv (#3304) Co-authored-by: Yong He <yonghe@outlook.com> 02 November 2023, 03:22:14 UTC
12e69ff add support for dx 6.7 profiles (#3299) 01 November 2023, 16:48:44 UTC
1ac6638 Disable frexp test on swiftshader. (#3294) * Disable frexp test on swiftshader. * Fix windows release script. --------- Co-authored-by: Yong He <yhe@nvidia.com> 26 October 2023, 23:19:02 UTC
aed3bd6 Remove use of `::set-output` in github actions. (#3293) Co-authored-by: Yong He <yhe@nvidia.com> 26 October 2023, 22:36:25 UTC
02e6c6b Update to Bearer/tap/gon for macos notarization. (#3292) Co-authored-by: Yong He <yhe@nvidia.com> 26 October 2023, 22:04:25 UTC
41e17d3 Make the exponent return value from frexp int (#3284) * Make the exponent return value from frexp int Fixes https://github.com/shader-slang/slang/issues/3282 * Update slang-llvm. --------- Co-authored-by: Yong He <yhe@nvidia.com> 26 October 2023, 22:03:34 UTC
bee74b1 Add more diagnostics around use of custom derivatives. (#3291) Co-authored-by: Yong He <yhe@nvidia.com> 26 October 2023, 21:01:26 UTC
927d176 Fix generic specialization bug. (#3290) * Fix generic specialization bug. * Update test. --------- Co-authored-by: Yong He <yhe@nvidia.com> 26 October 2023, 17:45:08 UTC
4572976 Update autodiff-texture example with one that auto-diffs a reference impl. (#3288) 25 October 2023, 20:31:49 UTC
1a8216b Fix warnings for gcc 12.3 (#3286) * Silence a few gcc out of bounds warnings * Search upwards from executable for prelude directory instead of assuming depth * comment wording * Check return values of read and write * Correct path to vulkan headers in gfx * Correct diagnostic on missing file in slang-embed * Do not use absolute path to libraries in test-context.cpp --------- Co-authored-by: Yong He <yonghe@outlook.com> 25 October 2023, 19:22:01 UTC
e04abb5 Fix single iteration loop detection logic. (#3287) Co-authored-by: Yong He <yhe@nvidia.com> 25 October 2023, 19:21:35 UTC
0175346 Use GLSL Scalar layout for vulkan device. (#3285) Co-authored-by: Yong He <yhe@nvidia.com> 25 October 2023, 14:50:31 UTC
5dc3c2f Add `IArray`. (#3281) * Initial support for generic interfaces. * Cleanup. * Add generic syntax for interfaces. * Add `IArray`. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 25 October 2023, 14:50:14 UTC
f8bf75c Support generic interfaces. (#3278) * Initial support for generic interfaces. * Cleanup. * Add generic syntax for interfaces. --------- Co-authored-by: Yong He <yhe@nvidia.com> 25 October 2023, 14:45:23 UTC
d8f4c94 Fix issue with transposing `IRMakeVector` with non-singleton operands (#3280) 21 October 2023, 01:21:30 UTC
d001a7b Add a tool to dump/replay compute pipeline creation from gfx. (#3275) * Add a tool to dump/replay compute pipeline creation from gfx. * Fix x86 build. --------- Co-authored-by: Yong He <yhe@nvidia.com> 19 October 2023, 10:49:42 UTC
7826afc Type layouts for structured buffers with counters (#3269) * More tests for append structured buffer * Append and Consume structured buffer tests for DX12 * neaten * test wobble * Add counter layout information to append/consume structured buffers * add getRWStructuredBufferType * Correct definition of get size for append/consume structured buffers * tweak append structured buffer test * Allow initializing counter buffer in render test * vulkan test for consume structured buffer * Handle null counterVarLayout in getExplicitCounterBindingRangeOffset * remove dead code * Implement atomic counter increment/decrement for spirv * explicit spirv test * Add missing check on result * Hold on to counter resources --------- Co-authored-by: Yong He <yonghe@outlook.com> 17 October 2023, 22:26:00 UTC
0a3683d Run Falcor Tests (#3270) * Run Falcor Tests * Update test config. * update config. * fix. * fix * fix. * skip slow test. * Fix ci config. --------- Co-authored-by: Yong He <yhe@nvidia.com> 16 October 2023, 23:17:56 UTC
d4b8edf Update a1-04-interop.md 13 October 2023, 20:49:02 UTC
edf90f5 Update a1-04-interop.md (#3277) 13 October 2023, 20:42:17 UTC
078cf8e Add documentation on target intrinsics. (#3276) Co-authored-by: Yong He <yhe@nvidia.com> 13 October 2023, 20:30:57 UTC
c701013 Add HitObject.GetWorldToObject. (#3273) * Add HitObject.GetWorldToObject. * fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 12 October 2023, 19:20:34 UTC
459572c Small warnings and bugs (#3272) * Correctly use removeTrivialSingleIterationLoops during simplification * remove unused variables * Fix invalid fallthrough --------- Co-authored-by: Yong He <yonghe@outlook.com> 11 October 2023, 17:53:00 UTC
61132c7 Report spirv-opt time. (#3271) * Report spirv-opt time. * Removing timing logic in `loadModule`. --------- Co-authored-by: Yong He <yhe@nvidia.com> 11 October 2023, 05:07:56 UTC
cd9a8b2 Update README.md 11 October 2023, 00:35:26 UTC
fb91955 Update slang-glslang binaries to v13.0.0.x-g (#3268) * Update slang-glslang binaries to v13.0.0.x-g * Update tests. --------- Co-authored-by: Yong He <yhe@nvidia.com> 09 October 2023, 23:53:51 UTC
a83a8b6 Update prebuilt glslang binaries. (#3267) * Update prebuilt glslang binaries. * Update spirv-disassembling logic in slang-glslang. --------- Co-authored-by: Yong He <yhe@nvidia.com> 09 October 2023, 22:07:26 UTC
67e186f Run curated spirv-opt passes through slang-glslang. (#3266) * Run curated spirv-opt passes through slang-glslang. * Cleanup. * Replace spirv-dis downstream compiler with glslang. * delete slang-spirv-opt.cpp. --------- Co-authored-by: Yong He <yhe@nvidia.com> 09 October 2023, 21:03:43 UTC
17c7163 Small type system fixes. (#3265) 06 October 2023, 21:03:18 UTC
4547125 Add intellisense support for spirv_asm blocks. (#3264) Co-authored-by: Yong He <yhe@nvidia.com> 06 October 2023, 00:05:20 UTC
441e13e Various AD Fixes (#3263) * Various fixes * Remove unused parameter * Update slang-ir-loop-unroll.cpp --------- Co-authored-by: Yong He <yonghe@outlook.com> 05 October 2023, 16:52:49 UTC
65751ce Check for extension support before enabling a feature (#3262) Co-authored-by: Yong He <yonghe@outlook.com> 05 October 2023, 16:49:19 UTC
8eb504f Use designated compiler ID in SPIRV backend. (#3261) Co-authored-by: Yong He <yhe@nvidia.com> 05 October 2023, 16:45:54 UTC
9572c60 Add `kIROp_BitOr` to known non-differentiable inst list. (#3259) Co-authored-by: Yong He <yhe@nvidia.com> 04 October 2023, 19:16:35 UTC
ac886fd SPIRV compiler performance fixes. (#3258) * SPIRV compiler performance fixes. * Cleanup. * update project files * Cleanup debug code. * Make redundancy removal non-recursive. --------- Co-authored-by: Yong He <yhe@nvidia.com> 04 October 2023, 18:20:35 UTC
d87493a More direct-SPIRV fixes. (#3257) * More direct-SPIRV fixes. * Fix array-reg-to-mem. --------- Co-authored-by: Yong He <yhe@nvidia.com> 02 October 2023, 22:39:34 UTC
cea230b Use const ref for mesh payload (#3254) * Use const ref for mesh payload * Test mesh payload hlsl output 02 October 2023, 16:05:39 UTC
ccf2611 Add SPIRV intrinsics for ShaderExecutionReordering and RW/Buffer. (#3252) * Add SPIRV intrinsics for ShaderExecutionReordering. * Add intrinsics for `Buffer` and `RWBuffer`. * Various spirv fixes. * Marshal bool vector type. * Inline global constants + OpFOrdNotEqual->OpFUnordNotEqual. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 02 October 2023, 10:33:58 UTC
6138de5 Fix for problem with OrderedHashSet causing crash (#3251) * Fix for problem with OrderedHashSet causing crashes during running tests on on g++ 7.3 * Fix typo 29 September 2023, 23:10:22 UTC
f20f4e2 Add `requirePrelude()` intrinsic function. (#3250) * Add `requirePrelude()` intrinsic function. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 29 September 2023, 19:01:36 UTC
af61737 [Direct SPIRV]: ray tracing pipeline intrinsics. (#3244) * Use a dedicated inst opcode to retrieve ray payload locations. * [Direct SPIRV]: ray tracing pipeline intrinsics. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> 29 September 2023, 01:08:06 UTC
b7d318f Support `constref` parameters passing. (#3249) * Support `constref` parameters passing. * Fix. * Fix. * Add test and diagnostic on mix use of __constref and no_diff. * check for [constref] on differentiable member method. --------- Co-authored-by: Yong He <yhe@nvidia.com> 29 September 2023, 01:07:40 UTC
e723894 Fix `TensorView.store()` definition (#3248) 28 September 2023, 06:19:54 UTC
e698b4a Remove `[NoSideEffect]` from `DiffTensorView.store()` (#3247) Co-authored-by: Yong He <yonghe@outlook.com> 28 September 2023, 05:45:09 UTC
e710fac Fix a bug in `canInstHaveSideEffectAtAddress`. (#3246) Co-authored-by: Yong He <yhe@nvidia.com> 28 September 2023, 05:39:22 UTC
12e8ce5 Fix regression on no_diff type transcription. (#3245) Co-authored-by: Yong He <yhe@nvidia.com> 28 September 2023, 05:35:58 UTC
9833ff9 Fix `isMovableInst`. (#3243) Co-authored-by: Yong He <yhe@nvidia.com> 27 September 2023, 18:46:29 UTC
8326248 WIP Mesh shaders for SPIR-V (#3226) * SPIR-V impl for SetMeshOutputCounts and DispatchMesh * Unsightly fix for legalization ordering differences between GLSL and SPIR-V * spelling * Start a new block after terminating one in the OpEmitMeshTasksExt SPIR-V asm block * Emit mesh shader decorations in SPIR-V * Mesh and task shader stages for spir-v * Output explicit gl builtins for spir-v * Be more hygenic when SOAizing mesh outputs * Do not create builtin paramter block for spirv mesh outputs * Pass mesh payloads around by ref * comment * less expected failure * remove unused * Add spirv op * Correct type query for default flat modifier --------- Co-authored-by: Yong He <yonghe@outlook.com> 27 September 2023, 18:46:03 UTC
771b3ef Avoid make copies of __ref parameters when doing autodiff. (#3242) Co-authored-by: Yong He <yhe@nvidia.com> 27 September 2023, 18:36:31 UTC
ebe8dde Various SPIRV fixes. (#3231) * Various SPIRV fixes. - Geometry shader support (WIP). - Fix texture get dimension and load. - Fold global GetElement(MakeArray/MakeVector) insts. - Call spvopt to inline all functions. - Translate OpImageSubscript. - Emit struct member names and global variable names. - Fix lowering of OpBitNot -> OpNot, instead of OpBitReverse. * Fix test. * Fix geometry shader. * Fix geometry shader emit. * Add atomic Image access test. * Fix tests. * don't fail if spirv-opt fails. * Update comments. * Fix test. * Cleanups. * indentation --------- Co-authored-by: Yong He <yhe@nvidia.com> Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com> 27 September 2023, 06:56:06 UTC
c5c8cfb Handle the case where the parent if-else region's after-block is unreachable. (#3241) Also added a test for this. Co-authored-by: Yong He <yonghe@outlook.com> 27 September 2023, 00:50:13 UTC
a18dca2 Fix for epoch/ASTBuilder* nullptr issue (#3240) * Fix issue with failing tests tests/serialization/serialized-module-test.slang tests/serialization/extern/extern-test.slang * Fix issue with session destruction order on Session. * Improve comment. 26 September 2023, 19:40:22 UTC
6c99194 Add test for vector-element contiguity error (#3235) 25 September 2023, 22:30:34 UTC
56c4a8c Update a1-02-slangpy.md (#3237) 25 September 2023, 22:29:35 UTC
2e76151 Fix for threading issues around global session & epoch ids. (#3232) * Fix for threading issues around global session & epoch ids. * Make m_epochId atomic for thread visibility. 25 September 2023, 15:52:18 UTC
ab04bd0 More `slangpy` features + polishing (#3233) * Update user-guide with new slangpy features * More polishing of new slangpy docs * Update a1-02-slangpy.md * Only require contiguity for vector element types * Added `loadOnce/storeOnce` and subscript operations * Added docs, `DiffTensorView.dims()` & `DiffTensorView.stride(uint)` * Add constructors, remove storeOnce/loadOnce test * Adjusted intrinsic definitions 23 September 2023, 16:11:45 UTC
back to top