SlangComponentType
Inherits: RefCounted
Inherited By: SlangEntryPoint, SlangModule
A unit of shader code layout, reflection, and linking.
Description
A component type is a unit of shader code layout, reflection, and linking. It may be included into a linked and compiled shader program.
Properties
|
|
Methods
compile_entry_point(entry_point_index: |
|
get_params_shape() const |
|
link() const |
|
|
to_json() const |
Property Descriptions
String diagnostic = "" 🔗
void set_diagnostic(value:
String)Stringget_diagnostic()
The diagnostic associated with attempting to load this component.
Method Descriptions
SlangBlob compile_entry_point(entry_point_index: int = 0, target_index: int = 0) const 🔗
Get the compiled code for the entry point at entryPointIndex for the chosen targetIndex.
StructTypeLayoutShape get_params_shape() const 🔗
Emits reflection information for this module's program layout as a StructTypeLayoutShape.
SlangComponentType link() const 🔗
Link this component type against all of its unsatisfied dependencies. Returns the new linked component without modifying this component.
Variant to_json() const 🔗
Emits reflection information for this module's program layout in JSON format.