64804ce | Yong He | 25 January 2024, 22:54:46 UTC | Fix spirv legalization generating duplicate array types. (#3517) * Fix spirv legalization generating duplicate array types. * Fix intrinsics. * Update CI build config. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 25 January 2024, 22:54:46 UTC |
7ae8f68 | Yong He | 24 January 2024, 23:49:52 UTC | Update documentation. (#3492) Co-authored-by: Yong He <yhe@nvidia.com> | 24 January 2024, 23:49:52 UTC |
e7b6de3 | Yong He | 24 January 2024, 23:36:49 UTC | [SPIRV] Support `globallycoherent` and `[vk::index()]`. (#3488) * [SPIRV] Support `globallycoherent` modifier. * Fix. * Disable executable cooperative vector tests. * Update expected failure. * [SPIRV] Emit varying output index decoration. * Add test. * Update tests. * Fix test. * Emit `SpvExecutionModeEarlyFragmentTests`. * Lower `StructuredBuffer<bool>`. * Support globallycoherent on ByteAddressBuffer. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 24 January 2024, 23:36:49 UTC |
dd57306 | Pankaj Mistry | 24 January 2024, 21:55:19 UTC | IRSPIRVAsmOperandInst instructions may not have IRBlock as the immediate parent. Previously special case was added to handle IRDecoration similarly. Replace this with a common method getBlock that traverses the parent chain till it gets to the Block (#3486) Fixes bug #3432 | 24 January 2024, 21:55:19 UTC |
70f6ae4 | chloekek | 24 January 2024, 18:24:16 UTC | Correctly refer to ComPtr type in documentation (#3485) The user guide refers to `SlangComPtr`, but the type is actually called `ComPtr` and resides in the `Slang` namespace. Co-authored-by: Yong He <yonghe@outlook.com> | 24 January 2024, 18:24:16 UTC |
1afa78a | chloekek | 24 January 2024, 18:23:52 UTC | Document that D3D11 fragment stage is optional (#3480) It is not required to specify a pixel shader when rasterizing with D3D11. Omitting it is useful when writing to the depth buffer without writing to any render targets. Co-authored-by: Yong He <yonghe@outlook.com> | 24 January 2024, 18:23:52 UTC |
4e7e820 | Ellie Hermaszewska | 24 January 2024, 09:29:09 UTC | Generate lookup tables from cmake (#3461) * Generate lookup tables from cmake * Correct add_custom_command generator dependencies * set options for lookup table source * include path * use slang_add_target for capability generated targets * vs project regenerate * ci wobble --------- Co-authored-by: Yong He <yonghe@outlook.com> | 24 January 2024, 09:29:09 UTC |
ba4baf4 | Yong He | 24 January 2024, 06:58:36 UTC | [LSP] Handle "NotificationReceived" call. (#3481) Co-authored-by: Yong He <yhe@nvidia.com> | 24 January 2024, 06:58:36 UTC |
ad45062 | Yong He | 24 January 2024, 03:37:10 UTC | SPIRV Legalization fixes. (#3479) * Fix CFG legalization for SPIRV backend. * Emit DepthReplacing execution mode. * Fix do-while lowering. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 24 January 2024, 03:37:10 UTC |
1c1d096 | Jay Kwak | 24 January 2024, 00:58:12 UTC | Adding CONTRIBUTION.md (#3472) * Adding CONTRIBUTION.md Fixes #3372 Adding CONTRIBUTION.md that describes the workflow for the contributors at more details. * Add instructions for PR process in CONTRIBUTE.me This commit adds an instruction of how to handle the case when you got feedbacks during Pull Request process. * Fix a formatting problem for Code Style When a word is wrapped with "lessThen" and "greaterThan" characters, it may disappear on the result based on the formatting syntax of .MD file. They need to be wrapped with a single back-tick character to avoid the problem. --------- Co-authored-by: Yong He <yonghe@outlook.com> | 24 January 2024, 00:58:12 UTC |
4d21790 | Jay Kwak | 24 January 2024, 00:57:44 UTC | Fix incorrect behavior of operator% (#3470) * Fix incorrect behavior of operator% Fixes #1059. This change fixes the incorrect translation of "operator%" from HLSL to SPIRV. The issue stems from the fact that the behavior of "operator%" in GLSL differs from that in HLSL. In HLSL it behaves as "remainder" where as it behaves as "modulus" in GLSL. We have been using SpvOpFMod for operator% when Slang compiles from HLSL to SPRIV, which is incorrect. This change switches it to SpvOpFRem. The tests are slightly modified to reveal any potential issues. * Change output type of test/compute/frem For testing the operator%, we are using "int" as the output type of the test, "test/compute/frem.slang". Since the operands are in float type, it is more preferable to have a float type as the resulting type. This can be done with an option, "-output-using-type". --------- Co-authored-by: Yong He <yonghe@outlook.com> | 24 January 2024, 00:57:44 UTC |
af91e77 | kaizhangNV | 23 January 2024, 23:56:21 UTC | Add support for rayQueryGetIntersectionTriangleVertexPositionsEXT (#3463) Add a member function to RayQuery<RAY_FLAG> class GetIntersectionTriangleVertexPositions to support the GLSL built-int rayQueryGetIntersectionTriangleVertexPositionsEXT. Also add new test file under tests/vkray/rayquery-closesthit.slang to test this functionality. | 23 January 2024, 23:56:21 UTC |
5902acd | Yong He | 23 January 2024, 07:19:40 UTC | [LSP] Fetch configs directly from didConfigurationChanged message. (#3478) Co-authored-by: Yong He <yhe@nvidia.com> | 23 January 2024, 07:19:40 UTC |
fec9c42 | Yong He | 22 January 2024, 23:19:26 UTC | Bug fixes for the direct spirv backend. (#3474) * Fix GLSL legalization bug that leads to crash. * Update diagnostic id to avoid conflict. * Fix std140 layout logic. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 22 January 2024, 23:19:26 UTC |
c4e42ab | Yong He | 22 January 2024, 21:13:49 UTC | Fix language server for VS. (#3473) Co-authored-by: Yong He <yhe@nvidia.com> | 22 January 2024, 21:13:49 UTC |
fdc17a9 | Yong He | 20 January 2024, 02:02:40 UTC | Add `-fspv-reflect` support. (#3464) * Add `-fspv-reflect` support. Closes #3462. * Fix. * Fix. * Remove use of `SPV_GOOGLE_hlsl_functionality1`. * Fix spirv validation error. * Fix test. * Update typename hints. * Update commandline options doc. * Remove superfluous empty lines. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 20 January 2024, 02:02:40 UTC |
84b2143 | Nathan V. Morrical | 19 January 2024, 02:52:33 UTC | Docs for local vs global uniform parameters (#3459) | 19 January 2024, 02:52:33 UTC |
c5c1a25 | Yong He | 19 January 2024, 00:46:00 UTC | Capability def parsing & codegen + disjoint sets (#3451) * Capability def parsing & codegen + disjoint sets This change adds a capability definition file, and a code generator to produce C++ code that defines the capability enums and necessary data structures around the capabilities. Extends the existing CapabilitySet class to support expressing disjoint sets of capabilities. This sets up for the next change that will enhance our type checking with reasoning of capability requirements. * Fix cmake. * Fix warning. * Fix. * Fix isBetterForTarget to prefer less specialized option. * Fix. * Fix premake. * Fix intrinsic. * Fix vs sln file. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 19 January 2024, 00:46:00 UTC |
1a13842 | Nathan V. Morrical | 17 January 2024, 23:34:51 UTC | updated docs to more clearly define differences in sizeof(bool) depending on the target platform (#3458) Co-authored-by: Yong He <yonghe@outlook.com> | 17 January 2024, 23:34:51 UTC |
bf2e0fe | kaizhangNV | 17 January 2024, 23:33:36 UTC | Add test to closesthit and anyhit shaders (#3457) Add test to closesthit.slang and anyhit.slang to test the slang stdlib API: HitTriangleVertexPosition. The new test will add the checking for extension declaration, built-in declaration, and built-in variable access. | 17 January 2024, 23:33:36 UTC |
159e318 | kaizhangNV | 17 January 2024, 16:45:15 UTC | Update slang-glslang library (#3449) | 17 January 2024, 16:45:15 UTC |
4cb183c | kaizhangNV | 17 January 2024, 02:56:41 UTC | Update spirv-tools (#3445) Update spirv-tools, spirv-headers and spirv-tools-generated repos. spirv-tools is updated to tag: v2023.6.rc1, branch: vulkan-sdk-1.3.275 commit: 3bb36c2a3f1a72f14e931cc2daca4311733b0014 spirv-headers is updated to branch: vulkan-sdk-1.3.275 commit:1c6bb2743599e6eb6f37b2969acc0aef812e32e3 spirv-tools-generated/*inc, *.h are generated from spirv-tools repo. source/slang/slang-spirv-core-grammar-embed.cpp is generated during slang build. | 17 January 2024, 02:56:41 UTC |
8e90098 | kaizhangNV | 11 January 2024, 20:10:43 UTC | Support for gl_HitTriangleVertexPositionsEXT (#3405) (#3442) * Support for gl_HitTriangleVertexPositionsEXT (#3405) Adding float3 HitTriangleVertexPositions(uint) to slang stdlib to support GLSL gl_HitTriangleVertexPositionsEXT builtin variable under extension of GL_EXT_ray_tracing_position_fetch. This function support emitting GLSL code and spir-V directly. * Update the function name --------- Co-authored-by: Yong He <yonghe@outlook.com> | 11 January 2024, 20:10:43 UTC |
2c08bc4 | skallweitNV | 11 January 2024, 18:36:33 UTC | Add libgfx to macos release (#3444) | 11 January 2024, 18:36:33 UTC |
8dd04c8 | Yong He | 09 January 2024, 20:41:07 UTC | Fix funcs w/ buffer load being treated as readnone. (#3441) Co-authored-by: Yong He <yhe@nvidia.com> | 09 January 2024, 20:41:07 UTC |
69f3d79 | skallweitNV | 09 January 2024, 17:14:13 UTC | Add compiler settings to shader cache key (#3439) | 09 January 2024, 17:14:13 UTC |
b570ad4 | Yong He | 08 January 2024, 17:58:03 UTC | Update a1-02-slangpy.md | 08 January 2024, 17:58:03 UTC |
1abc67c | Ellie Hermaszewska | 05 January 2024, 09:26:36 UTC | Add test for glsl groupshared init (#3433) | 05 January 2024, 09:26:36 UTC |
ecfd9da | jsmall-nvidia | 04 January 2024, 15:57:33 UTC | Add abseil_cpp to spirv-tools-generated instructions. | 04 January 2024, 15:57:33 UTC |
b7a419b | Ellie Hermaszewska | 04 January 2024, 08:24:33 UTC | Add some files to gitignore (#3434) | 04 January 2024, 08:24:33 UTC |
62e45e7 | jsmall-nvidia | 03 January 2024, 15:55:27 UTC | Fix issue with entry point result not being available via `spGetEntryPointCodeBlob` if defined in a serialized module. (#3431) | 03 January 2024, 15:55:27 UTC |
f33485c | Pankaj Mistry | 03 January 2024, 00:22:59 UTC | Update the GetDimension hlsl builtin for spirv path. In case of sampler, a combined sampled image needs an OpImage to be generated. (#3424) | 03 January 2024, 00:22:59 UTC |
f1f5e60 | Pankaj Mistry | 31 December 2023, 01:30:33 UTC | Fix the intrinsic expansion of ObjectToWorld3x4 in spirv_asm. Data type (#3428) | 31 December 2023, 01:30:33 UTC |
be06998 | Pankaj Mistry | 19 December 2023, 23:00:04 UTC | Lower sv_vertexid to decoration VertexIndex as defined in GL_KHR_vulkan_glsl (#3419) | 19 December 2023, 23:00:04 UTC |
93b8f68 | skallweitNV | 18 December 2023, 23:16:14 UTC | macos/vulkan support (#3418) | 18 December 2023, 23:16:14 UTC |
b6da044 | Pankaj Mistry | 16 December 2023, 20:48:27 UTC | Fix nonuniform decoration on direct-to-spirv backend path. (#3338) (#3417) | 16 December 2023, 20:48:27 UTC |
eb89ccb | Yong He | 16 December 2023, 02:10:17 UTC | Add doc for special scoping syntax. (#3416) Co-authored-by: Yong He <yhe@nvidia.com> | 16 December 2023, 02:10:17 UTC |
b507d88 | Yong He | 16 December 2023, 01:05:32 UTC | Add ConstBufferPointer::subscript. (#3415) Co-authored-by: Yong He <yhe@nvidia.com> | 16 December 2023, 01:05:32 UTC |
f8b3027 | Yong He | 16 December 2023, 00:30:09 UTC | Add language server support for vfx files. (#3414) Co-authored-by: Yong He <yhe@nvidia.com> | 16 December 2023, 00:30:09 UTC |
21d17ab | Ellie Hermaszewska | 15 December 2023, 15:41:27 UTC | GLSL SSBO Support (#3400) * Squash warnings and fix build with SLANG_EMBED_STDLIB * Add GLSLShaderStorageBuffer magic wrapper * Make GLSLSSBO not a uniform type * Buffers are global variables * Allow creating ssbo aggregate types * Allow reading from RWSB using builder * Nicer debug printing for ssbos * Lower SSBO to RWSB * Parse interface blocks into wrapped structs * Lower Interface Block Decls to structs * remove comment * Two simple ssbo tests * Move ssbo pass earlier * Correct mutable buffer detection * Do not replace ssbo usages outside of blocks * Treat GLSLSSBO as a mutable buffer for type layouts * regenerate vs projects * Correctly detect ssbo types * Diagnose illegal ssbo * remove unreachable code * neaten * ci wobble * Make GLSLSSBO ast handling more uniform * Add modifier cases for glsl * Use empty val info for unhandled interface blocks necessary for ./tests/glsl/out-binding-redeclaration.slang * more sophisticated modifier check * Correct ssbo wrapper name | 15 December 2023, 15:41:27 UTC |
34f04a4 | jsmall-nvidia | 14 December 2023, 16:22:23 UTC | Looks like `#3327` left in some debugging code. (#3411) | 14 December 2023, 16:22:23 UTC |
7e7d9ce | Yong He | 14 December 2023, 00:39:46 UTC | Polish language server and documentation. (#3410) Co-authored-by: Yong He <yhe@nvidia.com> | 14 December 2023, 00:39:46 UTC |
3979660 | Yong He | 13 December 2023, 23:15:19 UTC | Fix GLSL static initialization bug. (#3409) * Fix GLSL static initialization bug. Fixes #3408. * Update comment. * Fold global var initializer as an expression if possible. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 13 December 2023, 23:15:19 UTC |
1406aa2 | Yong He | 13 December 2023, 20:24:27 UTC | Add spirv intrinsics for `ConstBufferPointer`. (#3407) Fixes #3305. Fixes #3404. Co-authored-by: Yong He <yhe@nvidia.com> | 13 December 2023, 20:24:27 UTC |
6cbe215 | Yong He | 13 December 2023, 00:29:51 UTC | Define `Texture::Sample` for float element types only. (#3403) * Define `Texture::Sample` for float element types only. * Fixes #490. * Fix checking of groupshared. * Add test. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 13 December 2023, 00:29:51 UTC |
92f21de | Yong He | 12 December 2023, 22:07:35 UTC | Add check for invalid use of modifiers. (#3402) * Add check for invalid use of modifiers. * Fixes. * Add test. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 12 December 2023, 22:07:35 UTC |
ec0224e | Yong He | 12 December 2023, 00:13:32 UTC | Diagnose for invalid decl nesting + namespace lookup fixes. (#3397) * Diagnose for invalid decl nesting. * Fix. * Fix. * Fix. * Fix `namespace` lookup and `using` resolution. * fix project files. * revert project files. * Enhance namespace syntax, docs. * Fixes. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 12 December 2023, 00:13:32 UTC |
12fcffa | Yong He | 09 December 2023, 00:10:27 UTC | Handle import, entrypoint and global params in included files. (#3395) * Handle `import`, entrypoint and global params in included files. * Fix language server. * Extend `_createScopeForLegacyLookup` for `__include`. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 09 December 2023, 00:10:27 UTC |
4321929 | Ellie Hermaszewska | 08 December 2023, 11:24:34 UTC | WIP: CMake (#3326) * More robust input and output selection in generator tools * Add cmake build system * Get slang-test running with cmake * Bump lz4 and miniz dependencies * Make cmake build more declarative * Correct preprocessor logic in slang.h * Add cuda test to compute/simple * Remove empty cmake files * output placement for cmake, and commenting * Correct include paths in spirv-embed-generator * Format cmake with gersemi * Make cmake build clerer * Neaten header generation Also work around https://gitlab.kitware.com/cmake/cmake/-/issues/18399 by introducing correct_generated_properties to set the GENERATED flag in the correct scope * remove unused files * use 3.20 to set GENERATOR property properly * spelling * more flexible linker arg setting * replace slang-static with obj collection * Set rpath and linker path correctly * neaten generated file generation * tests working with cmake build * fix premake5 build * comment and neaten cmake * remove unnecessary dependency * Build aftermath example only when aftermath is enabled * Add slang-llvm and other dependencies * Put modules alongside binaries * Find slang-glslang correctly * Better option handling * comments * add llvm build test * Better option handling * cmake wobble * use UNICODE and _UNICODE * remove other workflows * use ccache * neaten * limit parallel for llvm build * use ninja for build * Windows and Darwin slang-llvm builds * cache key * verbose llvm build * cl on windows * sccache and cl.exe * use cl.exe * Correct package detection * less verbosity * Simplify miniz inclusion * fix build with sccache * Neaten llvm building * neaten * Neaten slang-llvm fetching * more surgical workarounds * Add ci action * Get version from git * better variable naming * add missing include * clean up after premake in cmake * more docs on cmake build * ci wobble * add imgui target * more selective source * do not download swiftshader * Some missing dependencies * only build llvm on dispatch * Disable /Zi in CI where sccache is present * simplify * set PIC for miniz * set policies before project * reengage workaround * more runs on ci * Add cmake presets * Add cpack * move iterator debug level to preset * Correct lib flag * simplify action * Neaten cmake init * Add todo * Add simple test wrapper * Add tests to workflow presets * rename packing preset * Correctly set definitions * docs * correct preset names * Make slang-test depend on test-server/test-process * neaten * use workflow in actions * install docs * Correct module install dir * debug dist workflow * Install headers * neaten header globbing * Neaten dependency handling * make lib and bin variables * Do not set compiler for vs builds, unnecessary * docs * allow setting explicit source for target * maintain archive subdir * cmake docs * install headers * place targets into folders * cmake docs * nest external projects in folder * remove name clash * Neater external packages * meta targets in folder structure * cleaner slang-glslang dll * Add missing static directive to slang-no-embedded-stdlib * more robust module copying * make slang-test the startup project * folder tweak * Make FETCH_BINARY the default on all platforms * Set DEBUG_DIR * add natvis files to source * skip spirv tests * remove test step from debug dist * Add build to .gitignore * redo warnings to be more like premake * Update imgui * clean more premake files * Disable PCH for glslang, gcc throws a warning * Add /MP for msvc builds * warning wobble * Add script to build llvm * Add slang-llvm and generators components * Build slang-llvm in ci * comments * fetch llvm with git * better abi approximation for cache * better sccache key * formatting * Correct logic around disabling problematic debug info for ccache * exclude gcc and clang from windows ci * Make dist workflows use system llvm * naming * restore normal dist builds * formatting * run tests in ci * Correct slang-llvm url setting * Rely on the system to find the test tool library * actions matrix wiggle * cope with OSX ancient bash * Correct compilers on windows * more ci debugging * Correct rpath handling on OSX * neaten * correct path to slang-llvm * Correct rpath separator on osx * Find slang-llvm correctly * smoke tests only on osx * ci wobble * Give MacOS module a dylib suffix * get swiftshader correctly * cope with bsd cp * remove debug output * full tests on osx * ci wobble * Add some vk tests to expected failures * simplify ci * ci wobble * exclude dx12 tests from github ci * remove cmake code for building llvm * warnings * warnings as errors for cl * spirv-tools in path * add aarch64 ci build * Add SLANG_GENERATORS_PATH option for prebuilt generators * neaten * Correct generator target name * remove yaml anchors because github actions does not support them * Demote CMake in docs Also add info on cross compiling * Restore premake CI * use minimal ci for cmake * Write miniz_export for premake build and .gitignore it * Mention build config tool options in docs * Remove redefined macro for miniz * regenerate vs project | 08 December 2023, 11:24:34 UTC |
9903688 | Yong He | 07 December 2023, 01:57:28 UTC | Update autodiff doc links. | 07 December 2023, 01:57:28 UTC |
8a15865 | Yong He | 07 December 2023, 01:56:24 UTC | Update README.md (#3383) | 07 December 2023, 01:56:24 UTC |
3e9b0ba | Yong He | 06 December 2023, 23:55:20 UTC | Update 04-modules-and-access-control.md | 06 December 2023, 23:55:20 UTC |
8102e5e | Yong He | 06 December 2023, 23:52:02 UTC | Change default visibility of interface members and update docs. (#3381) * Update behavior around interfaces and docs. * Update toc --------- Co-authored-by: Yong He <yhe@nvidia.com> | 06 December 2023, 23:52:02 UTC |
11111e5 | Yong He | 06 December 2023, 20:05:07 UTC | Support visibility control and default to `internal`. (#3380) * Support visibility control and default to `internal`. * Fix wip. * Fixes. * Fix. * Fix test. * Add legacy language detection and compatibility for existing code. * Add doc. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 06 December 2023, 20:05:07 UTC |
fa6d871 | Ellie Hermaszewska | 06 December 2023, 02:28:23 UTC | squash warnings (#3378) Co-authored-by: Yong He <yonghe@outlook.com> | 06 December 2023, 02:28:23 UTC |
1050e0e | Yong He | 05 December 2023, 18:06:19 UTC | Support `include` for pulling file into the current module. (#3377) * Support `include` for pulling file into the current module. * Add auto-completion, hover info and goto-def support. * Disable warning for missing `module` declaration for now. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 05 December 2023, 18:06:19 UTC |
4fb3b10 | Yong He | 29 November 2023, 19:29:14 UTC | Improve generic type argument inference. (#3370) * Improve generic type argument inference. * Fix. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 29 November 2023, 19:29:14 UTC |
62426e9 | Yong He | 28 November 2023, 17:15:31 UTC | Misc language server fixes. (#3357) | 28 November 2023, 17:15:31 UTC |
a2083d6 | Yong He | 27 November 2023, 21:46:26 UTC | Update 07-autodiff.md | 27 November 2023, 21:46:26 UTC |
b584526 | mighdoll | 27 November 2023, 21:44:54 UTC | typo in intro doc (#3350) Co-authored-by: Yong He <yonghe@outlook.com> | 27 November 2023, 21:44:54 UTC |
a7a7732 | mighdoll | 27 November 2023, 21:44:24 UTC | typo re: global variables (#3351) Co-authored-by: Yong He <yonghe@outlook.com> | 27 November 2023, 21:44:24 UTC |
b247fc1 | Yong He | 27 November 2023, 21:43:54 UTC | Fix spirv intrinsics for partial derivatives. (#3355) Co-authored-by: Yong He <yhe@nvidia.com> | 27 November 2023, 21:43:54 UTC |
5af36cf | Yong He | 22 November 2023, 01:22:41 UTC | Add SPIRV intrinsics for texture footprint query. (#3345) * Add SPIRV intrinsics for texture footprint query. * Cleanup. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 22 November 2023, 01:22:41 UTC |
383c0ef | Yong He | 20 November 2023, 22:51:27 UTC | Add missing SPIRV intrinsics for texture operations. (#3343) * Add missing SPIRV intrinsics for texture operations.. * Fixes. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 20 November 2023, 22:51:27 UTC |
fcc570c | Yong He | 20 November 2023, 19:00:39 UTC | Allow whole program compile when using direct spirv backend. (#3342) Co-authored-by: Yong He <yhe@nvidia.com> | 20 November 2023, 19:00:39 UTC |
c5a6348 | Yong He | 18 November 2023, 01:50:16 UTC | Add spirv intrinsic definition for `printf`. (#3340) | 18 November 2023, 01:50:16 UTC |
6f22477 | Yong He | 17 November 2023, 21:26:14 UTC | Update README.md (#3339) | 17 November 2023, 21:26:14 UTC |
27243ce | Ellie Hermaszewska | 17 November 2023, 18:50:40 UTC | warnings (#3335) * ignores * Remove unused variables * Squash out of bounds warning --------- Co-authored-by: Yong He <yonghe@outlook.com> | 17 November 2023, 18:50:40 UTC |
240aa24 | Yong He | 17 November 2023, 05:23:13 UTC | GLSL/SPIRV Fixes. (#3337) | 17 November 2023, 05:23:13 UTC |
6732f57 | Stephan Seitz | 17 November 2023, 04:53:33 UTC | experimental fix: return `JSONValue::Type::Null` as "" (#3336) | 17 November 2023, 04:53:33 UTC |
4c78efd | Yong He | 16 November 2023, 22:32:33 UTC | Unify stdlib `Texture` types into one generic type. (#3327) * Unify Texture types in stdlib into 1 generic type. * Fixes. * Fix. * Fixes. * Fix reflection. * Fix binding reflection. * Add gather intrinsics. * Fix gather intrinsics. * Fix texture type toText. * Fix intrinsic. * fix cuda intrinsic. * Fix project files. * cleanup. * Fix. * Fix. * Fix sampler feedback test. * Fix getDimension intrinsics. * Fix spirv sample image intrinsics. * Fix test. * Fix GLSL intrinsic. * Cleanup. --------- Co-authored-by: Yong He <yhe@nvidia.com> | 16 November 2023, 22:32:33 UTC |
12f7237 | Yong He | 15 November 2023, 01:46:05 UTC | Add GLSL Compatibility. (#3321) * Parse glsl buffer blocks to GLSLInterfaceBlockDecl * Parse glsl local size layout declarations * Parse (and ignore) glsl version directives * spelling * Better l-value interpretation for glsl interface blocks * Better l-value interpretation for glsl interface blocks * Add compile flag for enabling glsl * Parse and ignore precision modifiers. * Automatically import `glsl` module for compatiblity. * Complete vector and matrix types for glsl * Remove generated file from repo * Bump .gitignore * do not mark out globals as params * Synthesize entrypoint layout from global inout vars. * update test result. * Allow HLSL semantic on global variables. * Fix. * Fix test. * Fix win32 compile error. * Add more builtin input/output and texture intrinsics. * Add struct/array constructor syntax. * Skip `#extension` lines. * overide operator * for matrix/vector multiplication. * Add `matrixCompMult`. * Parse modifiers in for loop init var declr. * Add more glsl intrinsics, add stage into to var layout. * Allow `int[3] x` syntax. * Fix array type syntax. --------- Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com> Co-authored-by: Yong He <yhe@nvidia.com> | 15 November 2023, 01:46:05 UTC |
c71b127 | Ellie Hermaszewska | 13 November 2023, 17:02:08 UTC | Fix Phi simplification bug (#3325) Fixes https://github.com/shader-slang/slang/issues/3323 | 13 November 2023, 17:02:08 UTC |
011d428 | Yong He | 10 November 2023, 21:55:14 UTC | 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 |
bfd3f39 | Lin Hsu | 08 November 2023, 03:04:36 UTC | Fix HitObject::GetInstanceIndex/ID() for glsl/spirv (#3315) Co-authored-by: Yong He <yonghe@outlook.com> | 08 November 2023, 03:04:36 UTC |
0f2578d | Yong He | 08 November 2023, 03:03:52 UTC | 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 | Neil Bickford | 07 November 2023, 19:47:18 UTC | 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 | Yong He | 06 November 2023, 22:40:38 UTC | 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 | Ellie Hermaszewska | 06 November 2023, 21:21:49 UTC | 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 | Yong He | 04 November 2023, 00:10:09 UTC | 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 | Yong He | 03 November 2023, 21:40:18 UTC | Update 07-autodiff.md | 03 November 2023, 21:40:18 UTC |
cc22270 | Yong He | 03 November 2023, 19:49:23 UTC | 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 | Yong He | 02 November 2023, 21:54:22 UTC | 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 | Ellie Hermaszewska | 02 November 2023, 20:00:16 UTC | 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 | Yong He | 02 November 2023, 05:49:30 UTC | Add mnemonic parsing for `intrinsic_type` modifier. (#3306) Co-authored-by: Yong He <yhe@nvidia.com> | 02 November 2023, 05:49:30 UTC |
6aca381 | Yong He | 02 November 2023, 04:42:12 UTC | 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 | Ellie Hermaszewska | 02 November 2023, 03:22:14 UTC | Add OpDot for spirv (#3304) Co-authored-by: Yong He <yonghe@outlook.com> | 02 November 2023, 03:22:14 UTC |
12e69ff | skallweitNV | 01 November 2023, 16:48:44 UTC | add support for dx 6.7 profiles (#3299) | 01 November 2023, 16:48:44 UTC |
1ac6638 | Yong He | 26 October 2023, 23:19:02 UTC | 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 | Yong He | 26 October 2023, 22:36:25 UTC | 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 | Yong He | 26 October 2023, 22:04:25 UTC | 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 | Ellie Hermaszewska | 26 October 2023, 22:03:34 UTC | 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 | Yong He | 26 October 2023, 21:01:26 UTC | 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 | Yong He | 26 October 2023, 17:45:08 UTC | 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 | Sai Praveen Bangaru | 25 October 2023, 20:31:49 UTC | Update autodiff-texture example with one that auto-diffs a reference impl. (#3288) | 25 October 2023, 20:31:49 UTC |
1a8216b | Ellie Hermaszewska | 25 October 2023, 19:22:01 UTC | 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 | Yong He | 25 October 2023, 19:21:35 UTC | Fix single iteration loop detection logic. (#3287) Co-authored-by: Yong He <yhe@nvidia.com> | 25 October 2023, 19:21:35 UTC |
0175346 | Yong He | 25 October 2023, 14:50:31 UTC | Use GLSL Scalar layout for vulkan device. (#3285) Co-authored-by: Yong He <yhe@nvidia.com> | 25 October 2023, 14:50:31 UTC |
5dc3c2f | Yong He | 25 October 2023, 14:50:14 UTC | 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 | Yong He | 25 October 2023, 14:45:23 UTC | 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 |