summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2024-05-30Various issues in code snippets (#4247)Elie Michel
Fixed as I was testing release `v2024.1.17` (latest) Co-authored-by: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com>
2024-05-30Update document regarding pointer (#4248)Jay Kwak
And also add an actual test case from the User Guide example.
2024-05-30Fix confusion in Translation Units doc (#4245)Elie Michel
I think the sentence was saying the opposite of what it meant! Co-authored-by: Yong He <yonghe@outlook.com>
2024-05-30Fix small typo (#4246)Elie Michel
2024-05-24Fix pointer example (#4224)cheneym2
* Fix pointer example Make the example shown for pointers something that would compile. Don't redefine pNext and do define MyType. * Fix formatting of struct in pointer example
2024-05-23Fix pointers link in userguide (#4217)cheneym2
Adding (limited) to the header in a previous doc change broke the link. Co-authored-by: Jay Kwak <82421531+jkwak-work@users.noreply.github.com>
2024-05-16Update 03-convenience-features.md (#4179)ArielG-NV
add member init expr and constructor logic to the docs
2024-05-09fix typo (#4144)Tomáš Pazdiora
Co-authored-by: Yong He <yonghe@outlook.com>
2024-05-08`slangc` tool experience improvements. (#4140)Yong He
* `slangc` tool experience improvements. Fixes #4123. Fixes #4127. * Update doc.
2024-05-02Slang: update pointer related documentation (#4088)cheneym2
Slang does have some support for pointers. Remove an outdated comment stating the contratry, and update the section that describes pointer support to also list some relevant limitations. Fixes #3970 Co-authored-by: Yong He <yonghe@outlook.com>
2024-04-25Support derivative functions in compute & capabilities adjustments (#4014)ArielG-NV
* Support derivative functions in compute & capabilities adjustments fixes #4000 PR implements derivative functions in compute shaders properly so we have the functionality for SPIR-V & GLSL. Tests reflect fragment and compute paths. PR also adjusts capabilities to correct wrong SPRI-V target capabilities for when using textures. Remarks: 1. __requireComputeDerivative(); is a intrinsic_op and not modifier since inlining will destroy the modifier. 2. Derivative mode is tied to an entry point decoration `[DerivativeGroupQuad]`/`[DerivativeGroupLinear]` or GLSL syntax ``derivative_group_linearNV`. Default is to set the mode to `[DerivativeGroupQuad]` * remove -emit-spirv-directly * fixes 1. fix minor issue fwidth change where I returned the wrong type 2. fix issue where glslang{glsl->spirv} is wrong, so we don't run that test and just run the glsl test & direct spir-v test for intrinsic-texture.slang * adjust as per review and refine code 1. add test to ensure multi-diverging-in-logic entry points work -- 2 functions which may cause computeDerivatives + 1 that uses, 1 that does not. 2. naming 3. use entry point ref graph for c-like-targets 4. reordered some code to util's and removed `static linline` since that was just for ease of coding on my end (should not have been pushed). * Grammer * split up source file + issolate GLSL emit path change. --------- Co-authored-by: Yong He <yonghe@outlook.com>
2024-04-17Implement if(let ...) syntax (#3673) (#3958)kaizhangNV
2024-04-16Fix Slang documentation typos (#3961)cheneym2
2024-04-13Documentation: fix typos and grammar (#3945)bprb
2024-04-10Delete out of date docs (#3926)Yong He
2024-04-09Rename slangpy -> slangtorch in documentation. (#3922)Yong He
2024-04-09typos (#3913)Pema Malling
2024-04-03Delete out-of-date notes from user guide. (#3877)Yong He
We support partial generic parameter inference today.
2024-04-03Add documentation about constructors (#3879)Yong He
2024-04-02Update user guilde for new features. (#3875)Yong He
2024-03-21Support arrow operator `->` on pointers. (#3812)Yong He
2024-03-20Update a1-01-matrix-layout.mdYong He
2024-03-20Update a1-01-matrix-layout.mdYong He
2024-03-18Update 09-reflection.md (#3787)Yong He
2024-03-17Remove out of date documentation on compilation API. (#3785)Yong He
* Remove out of date documentation on compilation API. * Update toc.
2024-03-14Support unscoped enums. (#3771)Yong He
2024-03-13Add cautionary desclaimers on interop mechanisms. (#3763)Yong He
* Add cautionary desclaimers on interop mechanisms. * Fix.
2024-03-11Update 08-compiling.mdYong He
2024-03-11Add `-fvk-use-dx-position-w` and fix ExecutionMode ordering for geometry ↵Yong He
shaders. (#3731) * Add `-fvk-use-dx-position-w`. * Fix ordering of OutputVertices and output primitive type decoration in spirv. * Fix. * fix * Fix. * Move test around.
2024-03-08Add documentation for uniformity analysis. (#3721)Yong He
2024-03-04Extend `as` and `is` operator to work on generic types. (#3672)Yong He
2024-03-04Add user-guide section on pointers. (#3670)Yong He
2024-03-01Update doc TOC (#3657)Yong He
2024-03-01Add documentation for debugging. (#3656)Yong He
* Add documentation for debugging. * typo
2024-02-29Fix various crashes when generating debug info. (#3650)Yong He
* Fix crash when generating debug info for geometry shaders. * Fix. * Fix source language field in DebugCompilationUnit. * Fix. * Emit DebugEntryPoint inst. * Add trivial test. * Cleanup. * More cleanup.
2024-02-27Update documentation TOC. (#3641)Yong He
2024-02-27Update 08-compiling.mdYong He
2024-02-27Update doc links. (#3640)Yong He
2024-02-27Add documentation for link-time specialization. (#3638)Yong He
2024-02-27Update links in user-guide documentationYong He
2024-02-26Update documentation on compilation API. (#3634)Yong He
2024-02-15cmake: option to build a static library version of slang (#3578)Lukas Lipp
* cmake: slang lib type setting * cmake: change name for slang lib type setting --------- Co-authored-by: Yong He <yonghe@outlook.com>
2024-02-14cmake: add options to disable gfx, test, example, ... targets (#3572)Lukas Lipp
* cmake: add options to disable gfx, test and example targets * cmake: enable gfx, test, example targets by default * cmake: use same naming scheme * cmake: option to disable slangd and slangc targets * cmake: option for enabling slang-rt target * cmake: option to deactivate llvm and glslang * cmake: better option text * cmake: remove duplicate slang-llvm option * doc: update docs/building.md --------- Co-authored-by: Yong He <yonghe@outlook.com>
2024-02-06Improve Capability System (#3555)Yong He
* Improve capability system. * Update documentation. * Tuning semantics. * LSP: hierarchical diagnostics. * Fix test. * Fix test.
2024-02-05Add documentation on capability system. (#3549)Yong He
Fixes #3454.
2024-01-24Update documentation. (#3492)Yong He
Co-authored-by: Yong He <yhe@nvidia.com>
2024-01-24Correctly refer to ComPtr type in documentation (#3485)chloekek
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>
2024-01-24Document that D3D11 fragment stage is optional (#3480)chloekek
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>
2024-01-19Add `-fspv-reflect` support. (#3464)Yong He
* 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>
2024-01-18Docs for local vs global uniform parameters (#3459)Nathan V. Morrical