summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAge
* Correct formatting (#5457)Ellie Hermaszewska2024-10-30
|
* fix release script (#5459)Ellie Hermaszewska2024-10-30
|
* format yaml and json (#5428)Ellie Hermaszewska2024-10-30
| | | | | * format yaml and json * format shell scripts
* Put debug symbols in releases (#5370)Ellie Hermaszewska2024-10-29
|
* Precompiled SPIR-V import support (#5048)cheneym22024-10-29
| | | | | | | | | | | | | | | | | | | | * Precompiled SPIR-V import support Adds appropriate linkage and function declaration syntax for SPIR-V functions that are declared, to be imported from another SPIR-V module. Unlike DXIL, stripping the Slang IR for a function down to a declaration requires retaining a block of parameters, as the function declaration must be emitted to SPIR-V with the same parameters as a definition. Because that thwarts the logic in Slang to tell the difference between a declaration and definition, and explicit decoration is introduced to explicitly mark functions which need to be treated as declarations during emit phase. Fixes #4992 Co-authored-by: Yong He <yonghe@outlook.com>
* fix formatting issue (#5432)kaizhangNV2024-10-29
| | | Co-authored-by: Yong He <yonghe@outlook.com>
* Increase slangc option visibility in docs (#5425)cheneym22024-10-29
| | | | | | | | | | | | | | | | | | * Increase slangc option visibility in docs Link to slangc command-line reference from readme. readme. Boost the visiblity of the link in the user-guide. Consolidates command-line-slangc.md into the user-guide. Fixes #4124 * Update README.md * Update 08-compiling.md --------- Co-authored-by: Yong He <yonghe@outlook.com>
* [wasm]: fix the build error (#5430)kaizhangNV2024-10-29
|
* Use Offset instead of ConstOffset for GLSL function textureGatherOffset (#5426)Jay Kwak2024-10-29
| | | | | | | | | | | | | | | | * Use Offset instead of ConstOffset for GLSL function textureGatherOffset This commit changes to use `Offset` option on OpImageGather instruction when translating `textureGatherOffset` to SPIR-V code. Interestingly GLSL allows the offset value to be a variable not constant just for the function `textureGatherOffset` while all other offset variants of texture sampling functions require the offset to be a constant value. From a few experiments, I found that the spirv-optimizer changes `Offset` to `ConstOffset` if the offset is a compile-time value. I also found that when the offset value is zero, it changes to `None` with no offset value.
* formatEllie Hermaszewska2024-10-29
| | | | | | | * format * Minor test fixes * enable checking cpp format in ci
* preparation for clang format (#5422)Ellie Hermaszewska2024-10-29
| | | | | | | | | | | | | | | | | | | | | | | * Clang-format excludes * Add .clang-format * Don't clang-format in external * Missing includes and forward declarations * Replace wonky include-once macro name * neaten include naming * Add clang-format to formatting script * Add xargs and diff to required binaries * add clang-format to ci formatting check * Add max version check to formatting script * temporarily disable checking formatting for cpp files
* Check formatting in CI (#5409)Ellie Hermaszewska2024-10-29
| | | also add ci to check cmake formatting
* format cmake files (#5406)Ellie Hermaszewska2024-10-29
| | | | | | | | | * format cmake files * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
* Correct URL in auto-format PR body (#5427)Ellie Hermaszewska2024-10-29
|
* Improvements to formatting bot (#5421)Ellie Hermaszewska2024-10-29
| | | | | | | | | * Use github token for formatting command dispatch * Open PR instead of committing directly when formatting * Add --no-version-check option to formatting script * Colorful diff output for cmake formatting
* Replace the word stdlib or standard-library with core-module for source code ↵Jay Kwak2024-10-28
| | | | | (#5415) This commit changes the word "stdlib" or "standard library" to "core module" in the source code.
* Rename a directory `source/slang-stdlib` to slang-core-module (#5417)Jay Kwak2024-10-28
| | | | The directory name of `source/slang-stdlib` is changed to `source/slang-core-module`. We will use the term "core module" instead of "standard library" from now on.
* Assorted auto-diff enhancements for increased performance & more streamlined ↵Sai Praveen Bangaru2024-10-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | auto-diff results (#5394) * Various AD enhancements * Fix issue with pt-loop test * Update pt-loop.slang * More fixes for perf. Final minimal context test now passes. * Fix issue with loop-elimination pass not running after dce * Try fix wgpu test by removing select operator * Disable wgpu * Delete out.wgsl * Remove comments * Update slang-ir-util.cpp * Fix header relative paths for slang-embed * Disbale wgpu for a few other tests * Better way of determining which params to ignore for side-effects * Update slang-ir-dce.cpp * Fix issue with circular reference from previous AD pass being left behind for the next AD pass * Update slang-ir-dce.cpp
* Add documentation for buffer types (#5410)kaizhangNV2024-10-28
| | | | | | | | | | | | | | | | * Add documentation for buffer types * address comments * Update doc for LoadxAligned functions Update the doc for all Load{2,3,4}Aligned and LoadxAligned<T> functions of buffer type. We assume that those aligned version of Load{2,3,4} and Load<T> will treat the whole buffer as type of unit{2,3,4} or T, so the address must be aligned to size of the loaded type. --------- Co-authored-by: Yong He <yonghe@outlook.com>
* More wasm binding for playground. (#5420)Yong He2024-10-28
|
* Update README.mdYong He2024-10-27
|
* Update README.mdYong He2024-10-27
|
* Export language server to wasm. (#5419)Yong He2024-10-27
|
* Add implicit cast for generic vector types. (#5413)Yong He2024-10-27
|
* Add `InterlockedAddF64` intrinsic. (#5412)Yong He2024-10-27
|
* Swap the term StdLib with Core-Module or Standard-Module in documents (#5414)Jay Kwak2024-10-25
| | | | This PR is limited to documents. All use of "Standard library" or "StdLib" are replaced with either "core module" or "standard modules", depending on the context.
* Use github token for formatting command dispatch (#5418)Ellie Hermaszewska2024-10-26
|
* Actions workflow to format code on command (#5400)Ellie Hermaszewska2024-10-26
| | | | | | | * Add script to perform or check formatting * Actions workflow to format code on command Comment on a PR with /format
* Replace stdlib with core-module on files and projects (#5411)Jay Kwak2024-10-25
| | | | | | | This commit renames the files and projects to prefer "core-module" over "stdlib". The directory name `source/slang-stdlib` needs to be renamed too, and there will be another commit for it soon.
* Replace stdlib on Slang API with CoreModule (#5405)Jay Kwak2024-10-25
| | | | | | | | | | | | | | | | | | This is a breaking change in a way that the Slang API function names are changed. All of them are commented as "experimental" and we wouldn't provide a back-ward compatibility for them. Following functions are renamed: compileStdLib() -> compileCoreModule() loadStdLib() -> loadCoreModule() saveStdLib() -> saveCoreModule() slang_createGlobalSessionWithoutStdLib() -> slang_createGlobalSessionWithoutCoreModule() slang_getEmbeddedStdLib() -> slang_getEmbeddedCoreModule() hasDeferredStdLib() -> hasDeferredCoreModule() Following command-line arguments are renamed: "-load-stdlib" -> "-load-core-module" "-save-stdlib" -> "-save-core-module" "-save-stdlib-bin-source" -> "-save-core-module-bin-source" "-compile-stdlib" -> "-compile-core-module"
* Switch back to fetching upstream llvm project (#5408)Ellie Hermaszewska2024-10-25
| | | | | * backout of commit aa64c853142076b17bd020f1386ea5fc6fcd5e3e * Use github token to fetch llvm
* Fix incorrect debug assert in `getLanguagePrelude`. (#5402)Yong He2024-10-24
| | | | | * Fix incorrect debug assert in `getLanguagePrelude`. * Fix.
* Describe experimental COM interfaces (#5397)cheneym22024-10-24
| | | | | Fixes #5212 Co-authored-by: Yong He <yonghe@outlook.com>
* Use DebugDeclare instead of DebugValue. (#5404)Yong He2024-10-24
| | | | | | | | | | | | | * Use DebugDeclare instead of DebugValue. * Avoid generating illegal SPIRV. * Improve DebugLine output. * Fix. * Fix. * Misc improvements.
* wasm: Add compile target option when creating slang session (#5403)kaizhangNV2024-10-24
| | | | | | | | | | | | | * wasm: Add compile target option when creating slang session Also add a new interface to return spirv code which is binary, because 'std::string ComponentType::getEntryPointCode' is not suitable for returning the binary data. We use a more standard way that wrap the binary data by using emscripten::val as the return type. * Add target of metal
* Fix language server crash. (#5395)Yong He2024-10-24
|
* declutter top level CMakeLists.txt (#5391)Ellie Hermaszewska2024-10-24
| | | | | | | | | | | | | | | | | | | | | * Split examples cmake desc * declutter top level CMakeLists.txt * fail if building tests without gfx * Move llvm fetching to another cmake file * Further split CMakeLists.txt * Neaten llvm fetching * Remove last premake remnant * correct cross builds * Neaten * Neaten project organization in vs
* Fix a few documentation typos (#5396)cheneym22024-10-24
|
* Fix several bugs with `specializeWithArgTypes()` (#5365)Sai Praveen Bangaru2024-10-23
| | | | | * Fix several bugs with `specializeWithArgTypes()` * Make all types L-values for the purposes of reflection API resolution
* Document the interfaces in the core module (#5374)Jay Kwak2024-10-23
| | | Co-authored-by: Yong He <yonghe@outlook.com>
* Document bit operations (#5373)cheneym22024-10-23
| | | | | | | * Document bit operations Fixes #5307 * Update hlsl.meta.slang
* Document derivative core module functions (#5369)cheneym22024-10-22
|
* Update update_spirv.mdJay Kwak2024-10-22
| | | Rewording the document to make the testing step mandatory.
* Update the document, `update_spirv.md` (#5368)Jay Kwak2024-10-22
| | | This commit updates the document about how to update the SPIRV submodules.
* Recognize a new spirv header json grammar keyword "aliases" (#5367)Jay Kwak2024-10-21
| | | | | | | | | * Recognize a JSON keyword "aliases" for SPIRV-header This commit will handle the new JSON keyword "aliases" in SPIRV-Header grammar files. "aliases" are used in two places: one for "opname" and another for "enumerants". This commit itself wouldn't do anything until we integrate new commits from SPIRV-Header repo.
* Fix spirv codegen for pointer to empty structs. (#5355)Yong He2024-10-21
|
* Stdlib documentation for Atomic, Optional, Tuple (#5358)Ellie Hermaszewska2024-10-21
|
* Add more doc for builtin interfaces. (#5357)Yong He2024-10-21
|
* Fix UAV access for 3d texture mips (#5363)ccummingsNV2024-10-21
|
* Fix incorrect setting of array information for 1d texture arrays in D3D12 ↵ccummingsNV2024-10-21
| | | | (#5361)