|
|
Donner SVG 0.8.0-pre
SVG editor and embeddable C++20 engine.
|
Bridges an donner::gpu::shader::IrModule to the descriptors the GPU runtime consumes.
More...
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
Functions | |
| std::vector< ComputeEntryPointInfo > | donner::gpu::shader::ComputeEntryPointsOf (const IrModule &module) |
Returns every compute entry point module declares, with the workgroup size each was built with, in declaration order. | |
Bridges an donner::gpu::shader::IrModule to the descriptors the GPU runtime consumes.
The runtime cannot read a workgroup size back out of compiled WGSL, MSL, or SPIR-V, so a shader module descriptor carries the compute entry points its source declares. Deriving that list from the IR the source was emitted from keeps the runtime's copy of the size from ever being transcribed by hand and drifting from the shader.
| std::vector< ComputeEntryPointInfo > donner::gpu::shader::ComputeEntryPointsOf | ( | const IrModule & | module | ) |
Returns every compute entry point module declares, with the workgroup size each was built with, in declaration order.
Empty for a module with no compute entry points.
| module | Built IR module the shader source was emitted from. |