https://github.com/shader-slang/slang
Revision eaafafe772366a23ed847cbb10770c72aa5cfc28 authored by Tim Foley on 03 October 2018, 23:03:37 UTC, committed by GitHub on 03 October 2018, 23:03:37 UTC
* Update DXR API definitions for final spec.

The final version of the DXR API has changed the result type of the `DispatchRaysIndex()` and `DispatchRaysDimensions()` builtins to `uint3` (from `uint2`).

* Add updates for DXR object<->world transformations

The `ObjectToWorld()` and `WorldToObject()` functions were renamed to `ObjectToWorld3x4()` and `WorldToObject3x4()`, resepctively, and then new functions `ObjectToWorld4x3()` and `WorldToObject4x3()` were added to give convenient access to the transpose of these matrices.

(No, I'm not clear on why user's couldn't just call `transpose()`, either)

I've left the old function names in the standard library as forwarding functions just so that we don't break existing DXR code that relied on the old names.
1 parent cde0dec
History
Tip revision: eaafafe772366a23ed847cbb10770c72aa5cfc28 authored by Tim Foley on 03 October 2018, 23:03:37 UTC
Update DXR API definitions for final spec. (#659)
Tip revision: eaafafe
File Mode Size
docs
examples
external
source
tests
tools
.editorconfig -rw-r--r-- 937 bytes
.gitattributes -rw-r--r-- 95 bytes
.gitignore -rw-r--r-- 398 bytes
.gitmodules -rw-r--r-- 406 bytes
.travis.yml -rw-r--r-- 1.7 KB
CODE_OF_CONDUCT.md -rw-r--r-- 3.1 KB
LICENSE -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 6.3 KB
README.md -rw-r--r-- 6.7 KB
appveyor.yml -rw-r--r-- 3.7 KB
premake5.lua -rw-r--r-- 21.6 KB
slang-com-helper.h -rw-r--r-- 3.9 KB
slang-com-ptr.h -rw-r--r-- 4.8 KB
slang.h -rw-r--r-- 66.2 KB
slang.sln -rw-r--r-- 10.5 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top