diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-02-18 08:08:46 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-18 08:08:46 -0800 |
| commit | 51cdcad24b5271ac8c0f816174c6a760e264ed9e (patch) | |
| tree | 30beaa85671168ac2c73b08f4f20d894cbca88f9 /source/slang/slang.cpp | |
| parent | 8c872597540b2287bc18d5723c7ae3b8832246b8 (diff) | |
stdlib fixes for Vulkan (#414)
* stdlib fixes for Vulkan
- Make sure to emit `image*` instead of `texture*` for `RWTexture*` types
- Change `GetDimensions` to call `imageSize` instead of `textureSize` when we use images
- Always output a `layout(rgba32f)` for variables that translate to `image` types
- TODO: we should emit an appropriate format based on the type, or let the user specify one
- Fix GLSL translation for `any()` function (required boolean inputs)
- Add GLSL translation for `GroupMemoryBarrierWithGroupSync()`
- Map HLSL `groupshared` to GLSL `shared`
These together are enough to get the Falor `ComputeShader` example to work.
* fixup for warning
Diffstat (limited to 'source/slang/slang.cpp')
0 files changed, 0 insertions, 0 deletions
