diff options
| author | Theresa Foley <10618364+tangent-vector@users.noreply.github.com> | 2025-01-27 18:31:04 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-27 18:31:04 -0800 |
| commit | 31bb5eaa094821145fe235f9a13817b0b3b2bdee (patch) | |
| tree | 8d25b49516dfd74deb80e113ce2af8180a106e08 /examples/reflection-api/main.cpp | |
| parent | f030a5ab62235152055fe8a616dd6d0d7ba1c275 (diff) | |
Add an example for reflection of parameter blocks (#6161)
* Add an example for reflection of parameter blocks
The example loads a shader program, compiles it for Vulkan, and then uses reflection information to set up descriptor set layouts and a pipeline layout.
It then validates that the pipeline layout that is created is compatible with the compiled code, by using them together to make a pipeline state object with the validation layer enabled.
The basic flow of the application follows the presentation in the companion article, and references its sections.
This is example could be expanded in a few ways:
* A D3D12 path could be added, to show the comparable operations for creating a root signature from reflection data
* The existing shader could be modified to touch/use more of its parameter data, to help ensure that any errors would be caught by the validation layer
* The set of shader files/modules that get loaded automatically could be expanded, to test more cases
* The code could be expanded to handle more than just compute shaders, by allowing for multiple-entry-point files to be loaded for rasterization or ray-tracing pipelines
* format code
* fixup: build errors
* format code
* fixups for build
* fixup
* fixup
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'examples/reflection-api/main.cpp')
0 files changed, 0 insertions, 0 deletions
