[][src]Function slang_sys::spSetTypeNameForEntryPointExistentialTypeParam

pub unsafe extern "C" fn spSetTypeNameForEntryPointExistentialTypeParam(
    request: *mut SlangCompileRequest,
    entryPointIndex: c_int,
    slotIndex: c_int,
    typeName: *const c_char
) -> SlangResult

Specify the concrete type to be used for an entry-point "existential slot."

Every shader parameter (or leaf field of a struct-type shader parameter) that has an interface or array-of-interface type introduces an existential slot. The number of slots consumed by a shader parameter, and the starting slot of each parameter can be queried via the reflection API using SLANG_PARAMETER_CATEGORY_EXISTENTIAL_TYPE_PARAM.

In order to generate specialized code, a concrete type needs to be specified for each existential slot. This function specifies the name of the type (or in general a type expression) to use for a specific slot at the entry-point scope.