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

String

diagnostic

""

Methods

SlangBlob

compile_entry_point(entry_point_index: int = 0, target_index: int = 0) const

StructTypeLayoutShape

get_params_shape() const

SlangComponentType

link() const

Variant

to_json() const


Property Descriptions

String diagnostic = "" 🔗

  • void set_diagnostic(value: String)

  • String get_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.


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.