slot 0.0.1
A real time UI render framework
载入中...
搜索中...
未找到
函数
slang-deprecated.h 文件参考
#include "slang.h"
slang-deprecated.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

SLANG_API SlangSessionspCreateSession (const char *deprecated=0)
 Initialize an instance of the Slang library.
 
SLANG_API void spDestroySession (SlangSession *session)
 Clean up after an instance of the Slang library.
 
SLANG_API void spSessionSetSharedLibraryLoader (SlangSession *session, ISlangSharedLibraryLoader *loader)
 
SLANG_API ISlangSharedLibraryLoaderspSessionGetSharedLibraryLoader (SlangSession *session)
 
SLANG_API SlangResult spSessionCheckCompileTargetSupport (SlangSession *session, SlangCompileTarget target)
 
SLANG_API SlangResult spSessionCheckPassThroughSupport (SlangSession *session, SlangPassThrough passThrough)
 
SLANG_API void spAddBuiltins (SlangSession *session, char const *sourcePath, char const *sourceString)
 
SLANG_API SlangCompileRequestspCreateCompileRequest (SlangSession *session)
 
SLANG_API void spDestroyCompileRequest (SlangCompileRequest *request)
 Destroy a compile request. Note a request is a COM object and can be destroyed via 'Release'.
 
SLANG_API void spSetFileSystem (SlangCompileRequest *request, ISlangFileSystem *fileSystem)
 
SLANG_API void spSetCompileFlags (SlangCompileRequest *request, SlangCompileFlags flags)
 
SLANG_API SlangCompileFlags spGetCompileFlags (SlangCompileRequest *request)
 
SLANG_API void spSetDumpIntermediates (SlangCompileRequest *request, int enable)
 
SLANG_API void spSetDumpIntermediatePrefix (SlangCompileRequest *request, const char *prefix)
 
SLANG_API void spSetLineDirectiveMode (SlangCompileRequest *request, SlangLineDirectiveMode mode)
 
SLANG_API void spSetTargetLineDirectiveMode (SlangCompileRequest *request, int targetIndex, SlangLineDirectiveMode mode)
 
SLANG_API void spSetTargetForceGLSLScalarBufferLayout (SlangCompileRequest *request, int targetIndex, bool forceScalarLayout)
 
SLANG_API void spSetTargetUseMinimumSlangOptimization (slang::ICompileRequest *request, int targetIndex, bool val)
 
SLANG_API void spSetIgnoreCapabilityCheck (slang::ICompileRequest *request, bool val)
 
SLANG_API void spSetCodeGenTarget (SlangCompileRequest *request, SlangCompileTarget target)
 
SLANG_API int spAddCodeGenTarget (SlangCompileRequest *request, SlangCompileTarget target)
 
SLANG_API void spSetTargetProfile (SlangCompileRequest *request, int targetIndex, SlangProfileID profile)
 
SLANG_API void spSetTargetFlags (SlangCompileRequest *request, int targetIndex, SlangTargetFlags flags)
 
SLANG_API void spSetTargetFloatingPointMode (SlangCompileRequest *request, int targetIndex, SlangFloatingPointMode mode)
 
SLANG_API void spAddTargetCapability (slang::ICompileRequest *request, int targetIndex, SlangCapabilityID capability)
 
SLANG_API void spSetTargetMatrixLayoutMode (SlangCompileRequest *request, int targetIndex, SlangMatrixLayoutMode mode)
 
SLANG_API void spSetMatrixLayoutMode (SlangCompileRequest *request, SlangMatrixLayoutMode mode)
 
SLANG_API void spSetDebugInfoLevel (SlangCompileRequest *request, SlangDebugInfoLevel level)
 
SLANG_API void spSetDebugInfoFormat (SlangCompileRequest *request, SlangDebugInfoFormat format)
 
SLANG_API void spSetOptimizationLevel (SlangCompileRequest *request, SlangOptimizationLevel level)
 
SLANG_API void spSetOutputContainerFormat (SlangCompileRequest *request, SlangContainerFormat format)
 
SLANG_API void spSetPassThrough (SlangCompileRequest *request, SlangPassThrough passThrough)
 
SLANG_API void spSetDiagnosticCallback (SlangCompileRequest *request, SlangDiagnosticCallback callback, void const *userData)
 
SLANG_API void spSetWriter (SlangCompileRequest *request, SlangWriterChannel channel, ISlangWriter *writer)
 
SLANG_API ISlangWriterspGetWriter (SlangCompileRequest *request, SlangWriterChannel channel)
 
SLANG_API void spAddSearchPath (SlangCompileRequest *request, const char *searchDir)
 
SLANG_API void spAddPreprocessorDefine (SlangCompileRequest *request, const char *key, const char *value)
 
SLANG_API SlangResult spProcessCommandLineArguments (SlangCompileRequest *request, char const *const *args, int argCount)
 
SLANG_API int spAddTranslationUnit (SlangCompileRequest *request, SlangSourceLanguage language, char const *name)
 
SLANG_API void spSetDefaultModuleName (SlangCompileRequest *request, const char *defaultModuleName)
 
SLANG_API void spTranslationUnit_addPreprocessorDefine (SlangCompileRequest *request, int translationUnitIndex, const char *key, const char *value)
 
SLANG_API void spAddTranslationUnitSourceFile (SlangCompileRequest *request, int translationUnitIndex, char const *path)
 
SLANG_API void spAddTranslationUnitSourceString (SlangCompileRequest *request, int translationUnitIndex, char const *path, char const *source)
 
SLANG_API SlangResult spAddLibraryReference (SlangCompileRequest *request, const char *basePath, const void *libData, size_t libDataSize)
 
SLANG_API void spAddTranslationUnitSourceStringSpan (SlangCompileRequest *request, int translationUnitIndex, char const *path, char const *sourceBegin, char const *sourceEnd)
 
SLANG_API void spAddTranslationUnitSourceBlob (SlangCompileRequest *request, int translationUnitIndex, char const *path, ISlangBlob *sourceBlob)
 
SLANG_API SlangProfileID spFindProfile (SlangSession *session, char const *name)
 
SLANG_API SlangCapabilityID spFindCapability (SlangSession *session, char const *name)
 
SLANG_API int spAddEntryPoint (SlangCompileRequest *request, int translationUnitIndex, char const *name, SlangStage stage)
 
SLANG_API int spAddEntryPointEx (SlangCompileRequest *request, int translationUnitIndex, char const *name, SlangStage stage, int genericArgCount, char const **genericArgs)
 
SLANG_API SlangResult spSetGlobalGenericArgs (SlangCompileRequest *request, int genericArgCount, char const **genericArgs)
 
SLANG_API SlangResult spSetTypeNameForGlobalExistentialTypeParam (SlangCompileRequest *request, int slotIndex, char const *typeName)
 
SLANG_API SlangResult spSetTypeNameForEntryPointExistentialTypeParam (SlangCompileRequest *request, int entryPointIndex, int slotIndex, char const *typeName)
 
SLANG_API SlangResult spCompile (SlangCompileRequest *request)
 
SLANG_API char const * spGetDiagnosticOutput (SlangCompileRequest *request)
 
SLANG_API SlangResult spGetDiagnosticOutputBlob (SlangCompileRequest *request, ISlangBlob **outBlob)
 
SLANG_API int spGetDependencyFileCount (SlangCompileRequest *request)
 
SLANG_API char const * spGetDependencyFilePath (SlangCompileRequest *request, int index)
 
SLANG_API int spGetTranslationUnitCount (SlangCompileRequest *request)
 
SLANG_API char const * spGetEntryPointSource (SlangCompileRequest *request, int entryPointIndex)
 
SLANG_API void const * spGetEntryPointCode (SlangCompileRequest *request, int entryPointIndex, size_t *outSize)
 
SLANG_API SlangResult spGetEntryPointCodeBlob (SlangCompileRequest *request, int entryPointIndex, int targetIndex, ISlangBlob **outBlob)
 
SLANG_API SlangResult spGetEntryPointHostCallable (SlangCompileRequest *request, int entryPointIndex, int targetIndex, ISlangSharedLibrary **outSharedLibrary)
 
SLANG_API SlangResult spGetTargetCodeBlob (SlangCompileRequest *request, int targetIndex, ISlangBlob **outBlob)
 
SLANG_API SlangResult spGetTargetHostCallable (SlangCompileRequest *request, int targetIndex, ISlangSharedLibrary **outSharedLibrary)
 
SLANG_API void const * spGetCompileRequestCode (SlangCompileRequest *request, size_t *outSize)
 
SLANG_API SlangResult spGetContainerCode (SlangCompileRequest *request, ISlangBlob **outBlob)
 
SLANG_API SlangResult spLoadRepro (SlangCompileRequest *request, ISlangFileSystem *fileSystem, const void *data, size_t size)
 
SLANG_API SlangResult spSaveRepro (SlangCompileRequest *request, ISlangBlob **outBlob)
 
SLANG_API SlangResult spEnableReproCapture (SlangCompileRequest *request)
 
SLANG_API SlangResult spGetCompileTimeProfile (SlangCompileRequest *request, ISlangProfiler **compileTimeProfile, bool shouldClear)
 
SLANG_API SlangResult spExtractRepro (SlangSession *session, const void *reproData, size_t reproDataSize, ISlangMutableFileSystem *fileSystem)
 
SLANG_API SlangResult spLoadReproAsFileSystem (SlangSession *session, const void *reproData, size_t reproDataSize, ISlangFileSystem *replaceFileSystem, ISlangFileSystemExt **outFileSystem)
 
SLANG_API void spOverrideDiagnosticSeverity (SlangCompileRequest *request, SlangInt messageID, SlangSeverity overrideSeverity)
 
SLANG_API SlangDiagnosticFlags spGetDiagnosticFlags (SlangCompileRequest *request)
 
SLANG_API void spSetDiagnosticFlags (SlangCompileRequest *request, SlangDiagnosticFlags flags)
 
SLANG_API SlangReflectionspGetReflection (SlangCompileRequest *request)
 
SLANG_API char const * spReflectionUserAttribute_GetName (SlangReflectionUserAttribute *attrib)
 
SLANG_API unsigned int spReflectionUserAttribute_GetArgumentCount (SlangReflectionUserAttribute *attrib)
 
SLANG_API SlangReflectionTypespReflectionUserAttribute_GetArgumentType (SlangReflectionUserAttribute *attrib, unsigned int index)
 
SLANG_API SlangResult spReflectionUserAttribute_GetArgumentValueInt (SlangReflectionUserAttribute *attrib, unsigned int index, int *rs)
 
SLANG_API SlangResult spReflectionUserAttribute_GetArgumentValueFloat (SlangReflectionUserAttribute *attrib, unsigned int index, float *rs)
 
SLANG_API const char * spReflectionUserAttribute_GetArgumentValueString (SlangReflectionUserAttribute *attrib, unsigned int index, size_t *outSize)
 
SLANG_API SlangTypeKind spReflectionType_GetKind (SlangReflectionType *type)
 
SLANG_API unsigned int spReflectionType_GetUserAttributeCount (SlangReflectionType *type)
 
SLANG_API SlangReflectionUserAttributespReflectionType_GetUserAttribute (SlangReflectionType *type, unsigned int index)
 
SLANG_API SlangReflectionUserAttributespReflectionType_FindUserAttributeByName (SlangReflectionType *type, char const *name)
 
SLANG_API SlangReflectionTypespReflectionType_applySpecializations (SlangReflectionType *type, SlangReflectionGeneric *generic)
 
SLANG_API unsigned int spReflectionType_GetFieldCount (SlangReflectionType *type)
 
SLANG_API SlangReflectionVariablespReflectionType_GetFieldByIndex (SlangReflectionType *type, unsigned index)
 
SLANG_API size_t spReflectionType_GetElementCount (SlangReflectionType *type)
 
SLANG_API size_t spReflectionType_GetSpecializedElementCount (SlangReflectionType *type, SlangReflection *reflection)
 
SLANG_API SlangReflectionTypespReflectionType_GetElementType (SlangReflectionType *type)
 
SLANG_API unsigned int spReflectionType_GetRowCount (SlangReflectionType *type)
 
SLANG_API unsigned int spReflectionType_GetColumnCount (SlangReflectionType *type)
 
SLANG_API SlangScalarType spReflectionType_GetScalarType (SlangReflectionType *type)
 
SLANG_API SlangResourceShape spReflectionType_GetResourceShape (SlangReflectionType *type)
 
SLANG_API SlangResourceAccess spReflectionType_GetResourceAccess (SlangReflectionType *type)
 
SLANG_API SlangReflectionTypespReflectionType_GetResourceResultType (SlangReflectionType *type)
 
SLANG_API char const * spReflectionType_GetName (SlangReflectionType *type)
 
SLANG_API SlangResult spReflectionType_GetFullName (SlangReflectionType *type, ISlangBlob **outNameBlob)
 
SLANG_API SlangReflectionGenericspReflectionType_GetGenericContainer (SlangReflectionType *type)
 
SLANG_API SlangReflectionTypespReflectionTypeLayout_GetType (SlangReflectionTypeLayout *type)
 
SLANG_API SlangTypeKind spReflectionTypeLayout_getKind (SlangReflectionTypeLayout *type)
 
SLANG_API size_t spReflectionTypeLayout_GetSize (SlangReflectionTypeLayout *type, SlangParameterCategory category)
 
SLANG_API size_t spReflectionTypeLayout_GetStride (SlangReflectionTypeLayout *type, SlangParameterCategory category)
 
SLANG_API int32_t spReflectionTypeLayout_getAlignment (SlangReflectionTypeLayout *type, SlangParameterCategory category)
 
SLANG_API uint32_t spReflectionTypeLayout_GetFieldCount (SlangReflectionTypeLayout *type)
 
SLANG_API SlangReflectionVariableLayoutspReflectionTypeLayout_GetFieldByIndex (SlangReflectionTypeLayout *type, unsigned index)
 
SLANG_API SlangInt spReflectionTypeLayout_findFieldIndexByName (SlangReflectionTypeLayout *typeLayout, const char *nameBegin, const char *nameEnd)
 
SLANG_API SlangReflectionVariableLayoutspReflectionTypeLayout_GetExplicitCounter (SlangReflectionTypeLayout *typeLayout)
 
SLANG_API size_t spReflectionTypeLayout_GetElementStride (SlangReflectionTypeLayout *type, SlangParameterCategory category)
 
SLANG_API SlangReflectionTypeLayoutspReflectionTypeLayout_GetElementTypeLayout (SlangReflectionTypeLayout *type)
 
SLANG_API SlangReflectionVariableLayoutspReflectionTypeLayout_GetElementVarLayout (SlangReflectionTypeLayout *type)
 
SLANG_API SlangReflectionVariableLayoutspReflectionTypeLayout_getContainerVarLayout (SlangReflectionTypeLayout *type)
 
SLANG_API SlangParameterCategory spReflectionTypeLayout_GetParameterCategory (SlangReflectionTypeLayout *type)
 
SLANG_API unsigned spReflectionTypeLayout_GetCategoryCount (SlangReflectionTypeLayout *type)
 
SLANG_API SlangParameterCategory spReflectionTypeLayout_GetCategoryByIndex (SlangReflectionTypeLayout *type, unsigned index)
 
SLANG_API SlangMatrixLayoutMode spReflectionTypeLayout_GetMatrixLayoutMode (SlangReflectionTypeLayout *type)
 
SLANG_API int spReflectionTypeLayout_getGenericParamIndex (SlangReflectionTypeLayout *type)
 
SLANG_API SlangReflectionTypeLayoutspReflectionTypeLayout_getPendingDataTypeLayout (SlangReflectionTypeLayout *type)
 
SLANG_API SlangReflectionVariableLayoutspReflectionTypeLayout_getSpecializedTypePendingDataVarLayout (SlangReflectionTypeLayout *type)
 
SLANG_API SlangInt spReflectionType_getSpecializedTypeArgCount (SlangReflectionType *type)
 
SLANG_API SlangReflectionTypespReflectionType_getSpecializedTypeArgType (SlangReflectionType *type, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeCount (SlangReflectionTypeLayout *typeLayout)
 
SLANG_API SlangBindingType spReflectionTypeLayout_getBindingRangeType (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_isBindingRangeSpecializable (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeBindingCount (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangReflectionTypeLayoutspReflectionTypeLayout_getBindingRangeLeafTypeLayout (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangReflectionVariablespReflectionTypeLayout_getBindingRangeLeafVariable (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangImageFormat spReflectionTypeLayout_getBindingRangeImageFormat (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_getFieldBindingRangeOffset (SlangReflectionTypeLayout *typeLayout, SlangInt fieldIndex)
 
SLANG_API SlangInt spReflectionTypeLayout_getExplicitCounterBindingRangeOffset (SlangReflectionTypeLayout *inTypeLayout)
 
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeDescriptorSetIndex (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeFirstDescriptorRangeIndex (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeDescriptorRangeCount (SlangReflectionTypeLayout *typeLayout, SlangInt index)
 
SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetCount (SlangReflectionTypeLayout *typeLayout)
 
SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetSpaceOffset (SlangReflectionTypeLayout *typeLayout, SlangInt setIndex)
 
SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetDescriptorRangeCount (SlangReflectionTypeLayout *typeLayout, SlangInt setIndex)
 
SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetDescriptorRangeIndexOffset (SlangReflectionTypeLayout *typeLayout, SlangInt setIndex, SlangInt rangeIndex)
 
SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetDescriptorRangeDescriptorCount (SlangReflectionTypeLayout *typeLayout, SlangInt setIndex, SlangInt rangeIndex)
 
SLANG_API SlangBindingType spReflectionTypeLayout_getDescriptorSetDescriptorRangeType (SlangReflectionTypeLayout *typeLayout, SlangInt setIndex, SlangInt rangeIndex)
 
SLANG_API SlangParameterCategory spReflectionTypeLayout_getDescriptorSetDescriptorRangeCategory (SlangReflectionTypeLayout *typeLayout, SlangInt setIndex, SlangInt rangeIndex)
 
SLANG_API SlangInt spReflectionTypeLayout_getSubObjectRangeCount (SlangReflectionTypeLayout *typeLayout)
 
SLANG_API SlangInt spReflectionTypeLayout_getSubObjectRangeBindingRangeIndex (SlangReflectionTypeLayout *typeLayout, SlangInt subObjectRangeIndex)
 
SLANG_API SlangInt spReflectionTypeLayout_getSubObjectRangeSpaceOffset (SlangReflectionTypeLayout *typeLayout, SlangInt subObjectRangeIndex)
 
SLANG_API SlangReflectionVariableLayoutspReflectionTypeLayout_getSubObjectRangeOffset (SlangReflectionTypeLayout *typeLayout, SlangInt subObjectRangeIndex)
 
SLANG_API char const * spReflectionVariable_GetName (SlangReflectionVariable *var)
 
SLANG_API SlangReflectionTypespReflectionVariable_GetType (SlangReflectionVariable *var)
 
SLANG_API SlangReflectionModifierspReflectionVariable_FindModifier (SlangReflectionVariable *var, SlangModifierID modifierID)
 
SLANG_API unsigned int spReflectionVariable_GetUserAttributeCount (SlangReflectionVariable *var)
 
SLANG_API SlangReflectionUserAttributespReflectionVariable_GetUserAttribute (SlangReflectionVariable *var, unsigned int index)
 
SLANG_API SlangReflectionUserAttributespReflectionVariable_FindUserAttributeByName (SlangReflectionVariable *var, SlangSession *globalSession, char const *name)
 
SLANG_API bool spReflectionVariable_HasDefaultValue (SlangReflectionVariable *inVar)
 
SLANG_API SlangResult spReflectionVariable_GetDefaultValueInt (SlangReflectionVariable *inVar, int64_t *rs)
 
SLANG_API SlangResult spReflectionVariable_GetDefaultValueFloat (SlangReflectionVariable *inVar, float *rs)
 
SLANG_API SlangReflectionGenericspReflectionVariable_GetGenericContainer (SlangReflectionVariable *var)
 
SLANG_API SlangReflectionVariablespReflectionVariable_applySpecializations (SlangReflectionVariable *var, SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionVariablespReflectionVariableLayout_GetVariable (SlangReflectionVariableLayout *var)
 
SLANG_API SlangReflectionTypeLayoutspReflectionVariableLayout_GetTypeLayout (SlangReflectionVariableLayout *var)
 
SLANG_API size_t spReflectionVariableLayout_GetOffset (SlangReflectionVariableLayout *var, SlangParameterCategory category)
 
SLANG_API size_t spReflectionVariableLayout_GetSpace (SlangReflectionVariableLayout *var, SlangParameterCategory category)
 
SLANG_API SlangImageFormat spReflectionVariableLayout_GetImageFormat (SlangReflectionVariableLayout *var)
 
SLANG_API char const * spReflectionVariableLayout_GetSemanticName (SlangReflectionVariableLayout *var)
 
SLANG_API size_t spReflectionVariableLayout_GetSemanticIndex (SlangReflectionVariableLayout *var)
 
SLANG_API SlangReflectionDeclspReflectionFunction_asDecl (SlangReflectionFunction *func)
 
SLANG_API char const * spReflectionFunction_GetName (SlangReflectionFunction *func)
 
SLANG_API SlangReflectionModifierspReflectionFunction_FindModifier (SlangReflectionFunction *var, SlangModifierID modifierID)
 
SLANG_API unsigned int spReflectionFunction_GetUserAttributeCount (SlangReflectionFunction *func)
 
SLANG_API SlangReflectionUserAttributespReflectionFunction_GetUserAttribute (SlangReflectionFunction *func, unsigned int index)
 
SLANG_API SlangReflectionUserAttributespReflectionFunction_FindUserAttributeByName (SlangReflectionFunction *func, SlangSession *globalSession, char const *name)
 
SLANG_API unsigned int spReflectionFunction_GetParameterCount (SlangReflectionFunction *func)
 
SLANG_API SlangReflectionVariablespReflectionFunction_GetParameter (SlangReflectionFunction *func, unsigned index)
 
SLANG_API SlangReflectionTypespReflectionFunction_GetResultType (SlangReflectionFunction *func)
 
SLANG_API SlangReflectionGenericspReflectionFunction_GetGenericContainer (SlangReflectionFunction *func)
 
SLANG_API SlangReflectionFunctionspReflectionFunction_applySpecializations (SlangReflectionFunction *func, SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionFunctionspReflectionFunction_specializeWithArgTypes (SlangReflectionFunction *func, SlangInt argTypeCount, SlangReflectionType *const *argTypes)
 
SLANG_API bool spReflectionFunction_isOverloaded (SlangReflectionFunction *func)
 
SLANG_API unsigned int spReflectionFunction_getOverloadCount (SlangReflectionFunction *func)
 
SLANG_API SlangReflectionFunctionspReflectionFunction_getOverload (SlangReflectionFunction *func, unsigned int index)
 
SLANG_API unsigned int spReflectionDecl_getChildrenCount (SlangReflectionDecl *parentDecl)
 
SLANG_API SlangReflectionDeclspReflectionDecl_getChild (SlangReflectionDecl *parentDecl, unsigned int index)
 
SLANG_API char const * spReflectionDecl_getName (SlangReflectionDecl *decl)
 
SLANG_API SlangDeclKind spReflectionDecl_getKind (SlangReflectionDecl *decl)
 
SLANG_API SlangReflectionFunctionspReflectionDecl_castToFunction (SlangReflectionDecl *decl)
 
SLANG_API SlangReflectionVariablespReflectionDecl_castToVariable (SlangReflectionDecl *decl)
 
SLANG_API SlangReflectionGenericspReflectionDecl_castToGeneric (SlangReflectionDecl *decl)
 
SLANG_API SlangReflectionTypespReflection_getTypeFromDecl (SlangReflectionDecl *decl)
 
SLANG_API SlangReflectionDeclspReflectionDecl_getParent (SlangReflectionDecl *decl)
 
SLANG_API SlangReflectionModifierspReflectionDecl_findModifier (SlangReflectionDecl *decl, SlangModifierID modifierID)
 
SLANG_API SlangReflectionDeclspReflectionGeneric_asDecl (SlangReflectionGeneric *generic)
 
SLANG_API char const * spReflectionGeneric_GetName (SlangReflectionGeneric *generic)
 
SLANG_API unsigned int spReflectionGeneric_GetTypeParameterCount (SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionVariablespReflectionGeneric_GetTypeParameter (SlangReflectionGeneric *generic, unsigned index)
 
SLANG_API unsigned int spReflectionGeneric_GetValueParameterCount (SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionVariablespReflectionGeneric_GetValueParameter (SlangReflectionGeneric *generic, unsigned index)
 
SLANG_API unsigned int spReflectionGeneric_GetTypeParameterConstraintCount (SlangReflectionGeneric *generic, SlangReflectionVariable *typeParam)
 
SLANG_API SlangReflectionTypespReflectionGeneric_GetTypeParameterConstraintType (SlangReflectionGeneric *generic, SlangReflectionVariable *typeParam, unsigned index)
 
SLANG_API SlangDeclKind spReflectionGeneric_GetInnerKind (SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionDeclspReflectionGeneric_GetInnerDecl (SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionGenericspReflectionGeneric_GetOuterGenericContainer (SlangReflectionGeneric *generic)
 
SLANG_API SlangReflectionTypespReflectionGeneric_GetConcreteType (SlangReflectionGeneric *generic, SlangReflectionVariable *typeParam)
 
SLANG_API int64_t spReflectionGeneric_GetConcreteIntVal (SlangReflectionGeneric *generic, SlangReflectionVariable *valueParam)
 
SLANG_API SlangReflectionGenericspReflectionGeneric_applySpecializations (SlangReflectionGeneric *currGeneric, SlangReflectionGeneric *generic)
 
SLANG_API SlangStage spReflectionVariableLayout_getStage (SlangReflectionVariableLayout *var)
 
SLANG_API SlangReflectionVariableLayoutspReflectionVariableLayout_getPendingDataLayout (SlangReflectionVariableLayout *var)
 
SLANG_API unsigned spReflectionParameter_GetBindingIndex (SlangReflectionParameter *parameter)
 
SLANG_API unsigned spReflectionParameter_GetBindingSpace (SlangReflectionParameter *parameter)
 
SLANG_API SlangResult spIsParameterLocationUsed (SlangCompileRequest *request, SlangInt entryPointIndex, SlangInt targetIndex, SlangParameterCategory category, SlangUInt spaceIndex, SlangUInt registerIndex, bool &outUsed)
 
SLANG_API char const * spReflectionEntryPoint_getName (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API char const * spReflectionEntryPoint_getNameOverride (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API SlangReflectionFunctionspReflectionEntryPoint_getFunction (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API unsigned spReflectionEntryPoint_getParameterCount (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API SlangReflectionVariableLayoutspReflectionEntryPoint_getParameterByIndex (SlangReflectionEntryPoint *entryPoint, unsigned index)
 
SLANG_API SlangStage spReflectionEntryPoint_getStage (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API void spReflectionEntryPoint_getComputeThreadGroupSize (SlangReflectionEntryPoint *entryPoint, SlangUInt axisCount, SlangUInt *outSizeAlongAxis)
 
SLANG_API void spReflectionEntryPoint_getComputeWaveSize (SlangReflectionEntryPoint *entryPoint, SlangUInt *outWaveSize)
 
SLANG_API int spReflectionEntryPoint_usesAnySampleRateInput (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API SlangReflectionVariableLayoutspReflectionEntryPoint_getVarLayout (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API SlangReflectionVariableLayoutspReflectionEntryPoint_getResultVarLayout (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API int spReflectionEntryPoint_hasDefaultConstantBuffer (SlangReflectionEntryPoint *entryPoint)
 
SLANG_API char const * spReflectionTypeParameter_GetName (SlangReflectionTypeParameter *typeParam)
 
SLANG_API unsigned spReflectionTypeParameter_GetIndex (SlangReflectionTypeParameter *typeParam)
 
SLANG_API unsigned spReflectionTypeParameter_GetConstraintCount (SlangReflectionTypeParameter *typeParam)
 
SLANG_API SlangReflectionTypespReflectionTypeParameter_GetConstraintByIndex (SlangReflectionTypeParameter *typeParam, unsigned int index)
 
SLANG_API SlangResult spReflection_ToJson (SlangReflection *reflection, SlangCompileRequest *request, ISlangBlob **outBlob)
 
SLANG_API unsigned spReflection_GetParameterCount (SlangReflection *reflection)
 
SLANG_API SlangReflectionParameterspReflection_GetParameterByIndex (SlangReflection *reflection, unsigned index)
 
SLANG_API unsigned int spReflection_GetTypeParameterCount (SlangReflection *reflection)
 
SLANG_API SlangReflectionTypeParameterspReflection_GetTypeParameterByIndex (SlangReflection *reflection, unsigned int index)
 
SLANG_API SlangReflectionTypeParameterspReflection_FindTypeParameter (SlangReflection *reflection, char const *name)
 
SLANG_API SlangReflectionTypespReflection_FindTypeByName (SlangReflection *reflection, char const *name)
 
SLANG_API SlangReflectionTypeLayoutspReflection_GetTypeLayout (SlangReflection *reflection, SlangReflectionType *reflectionType, SlangLayoutRules rules)
 
SLANG_API SlangReflectionFunctionspReflection_FindFunctionByName (SlangReflection *reflection, char const *name)
 
SLANG_API SlangReflectionFunctionspReflection_FindFunctionByNameInType (SlangReflection *reflection, SlangReflectionType *reflType, char const *name)
 
SLANG_API SlangReflectionVariablespReflection_FindVarByNameInType (SlangReflection *reflection, SlangReflectionType *reflType, char const *name)
 
SLANG_API SlangReflectionFunctionspReflection_TryResolveOverloadedFunction (SlangReflection *reflection, uint32_t candidateCount, SlangReflectionFunction **candidates)
 
SLANG_API SlangUInt spReflection_getEntryPointCount (SlangReflection *reflection)
 
SLANG_API SlangReflectionEntryPointspReflection_getEntryPointByIndex (SlangReflection *reflection, SlangUInt index)
 
SLANG_API SlangReflectionEntryPointspReflection_findEntryPointByName (SlangReflection *reflection, char const *name)
 
SLANG_API SlangUInt spReflection_getGlobalConstantBufferBinding (SlangReflection *reflection)
 
SLANG_API size_t spReflection_getGlobalConstantBufferSize (SlangReflection *reflection)
 
SLANG_API SlangReflectionTypespReflection_specializeType (SlangReflection *reflection, SlangReflectionType *type, SlangInt specializationArgCount, SlangReflectionType *const *specializationArgs, ISlangBlob **outDiagnostics)
 
SLANG_API SlangReflectionGenericspReflection_specializeGeneric (SlangReflection *inProgramLayout, SlangReflectionGeneric *generic, SlangInt argCount, SlangReflectionGenericArgType const *argTypes, SlangReflectionGenericArg const *args, ISlangBlob **outDiagnostics)
 
SLANG_API bool spReflection_isSubType (SlangReflection *reflection, SlangReflectionType *subType, SlangReflectionType *superType)
 
SLANG_API SlangUInt spReflection_getHashedStringCount (SlangReflection *reflection)
 Get the number of hashed strings
 
SLANG_API const char * spReflection_getHashedString (SlangReflection *reflection, SlangUInt index, size_t *outCount)
 
SLANG_API SlangUInt32 spComputeStringHash (const char *chars, size_t count)
 
SLANG_API SlangReflectionTypeLayoutspReflection_getGlobalParamsTypeLayout (SlangReflection *reflection)
 Get a type layout representing reflection information for the global-scope parameters.
 
SLANG_API SlangReflectionVariableLayoutspReflection_getGlobalParamsVarLayout (SlangReflection *reflection)
 Get a variable layout representing reflection information for the global-scope parameters.
 
SLANG_API char const * spGetTranslationUnitSource (SlangCompileRequest *request, int translationUnitIndex)
 
SLANG_API SlangInt spReflection_getBindlessSpaceIndex (SlangReflection *reflection)
 

函数说明

◆ spAddBuiltins()

SLANG_API void spAddBuiltins ( SlangSession * session,
char const * sourcePath,
char const * sourceString )
参见
slang::IGlobalSession::addBuiltins

◆ spAddCodeGenTarget()

SLANG_API int spAddCodeGenTarget ( SlangCompileRequest * request,
SlangCompileTarget target )
参见
slang::ICompileRequest::addCodeGenTarget

◆ spAddEntryPoint()

SLANG_API int spAddEntryPoint ( SlangCompileRequest * request,
int translationUnitIndex,
char const * name,
SlangStage stage )
参见
slang::ICompileRequest::addEntryPoint

◆ spAddEntryPointEx()

SLANG_API int spAddEntryPointEx ( SlangCompileRequest * request,
int translationUnitIndex,
char const * name,
SlangStage stage,
int genericArgCount,
char const ** genericArgs )
参见
slang::ICompileRequest::addEntryPointEx

◆ spAddLibraryReference()

SLANG_API SlangResult spAddLibraryReference ( SlangCompileRequest * request,
const char * basePath,
const void * libData,
size_t libDataSize )
参见
slang::ICompileRequest::addLibraryReference

◆ spAddPreprocessorDefine()

SLANG_API void spAddPreprocessorDefine ( SlangCompileRequest * request,
const char * key,
const char * value )
参见
slang::ICompileRequest::addPreprocessorDefine

◆ spAddSearchPath()

SLANG_API void spAddSearchPath ( SlangCompileRequest * request,
const char * searchDir )
参见
slang::ICompileRequest::addSearchPath

◆ spAddTargetCapability()

SLANG_API void spAddTargetCapability ( slang::ICompileRequest * request,
int targetIndex,
SlangCapabilityID capability )
参见
slang::ICompileRequest::addTargetCapability

◆ spAddTranslationUnit()

SLANG_API int spAddTranslationUnit ( SlangCompileRequest * request,
SlangSourceLanguage language,
char const * name )
参见
slang::ICompileRequest::addTranslationUnit

◆ spAddTranslationUnitSourceBlob()

SLANG_API void spAddTranslationUnitSourceBlob ( SlangCompileRequest * request,
int translationUnitIndex,
char const * path,
ISlangBlob * sourceBlob )
参见
slang::ICompileRequest::addTranslationUnitSourceBlob

◆ spAddTranslationUnitSourceFile()

SLANG_API void spAddTranslationUnitSourceFile ( SlangCompileRequest * request,
int translationUnitIndex,
char const * path )
参见
slang::ICompileRequest::addTranslationUnitSourceFile

◆ spAddTranslationUnitSourceString()

SLANG_API void spAddTranslationUnitSourceString ( SlangCompileRequest * request,
int translationUnitIndex,
char const * path,
char const * source )
参见
slang::ICompileRequest::addTranslationUnitSourceString

◆ spAddTranslationUnitSourceStringSpan()

SLANG_API void spAddTranslationUnitSourceStringSpan ( SlangCompileRequest * request,
int translationUnitIndex,
char const * path,
char const * sourceBegin,
char const * sourceEnd )
参见
slang::ICompileRequest::addTranslationUnitSourceStringSpan

◆ spCompile()

SLANG_API SlangResult spCompile ( SlangCompileRequest * request)
参见
slang::ICompileRequest::compile

◆ spComputeStringHash()

SLANG_API SlangUInt32 spComputeStringHash ( const char * chars,
size_t count )

Compute a string hash. Count should NOT include terminating zero.

◆ spCreateCompileRequest()

SLANG_API SlangCompileRequest * spCreateCompileRequest ( SlangSession * session)

◆ spCreateSession()

SLANG_API SlangSession * spCreateSession ( const char * deprecated = 0)

Initialize an instance of the Slang library.

◆ spDestroyCompileRequest()

SLANG_API void spDestroyCompileRequest ( SlangCompileRequest * request)

Destroy a compile request. Note a request is a COM object and can be destroyed via 'Release'.

◆ spDestroySession()

SLANG_API void spDestroySession ( SlangSession * session)

Clean up after an instance of the Slang library.

◆ spEnableReproCapture()

SLANG_API SlangResult spEnableReproCapture ( SlangCompileRequest * request)
参见
slang::ICompileRequest::enableReproCapture

◆ spExtractRepro()

SLANG_API SlangResult spExtractRepro ( SlangSession * session,
const void * reproData,
size_t reproDataSize,
ISlangMutableFileSystem * fileSystem )

Extract contents of a repro.

Writes the contained files and manifest with their 'unique' names into fileSystem. For more details read the docs/repro.md documentation.

参数
sessionThe slang session
reproDataHolds the repro data
reproDataSizeThe size of the repro data
fileSystemFile system that the contents of the repro will be written to
返回
A SlangResult to indicate success or failure.

◆ spFindCapability()

SLANG_API SlangCapabilityID spFindCapability ( SlangSession * session,
char const * name )
参见
slang::IGlobalSession::findCapability

◆ spFindProfile()

SLANG_API SlangProfileID spFindProfile ( SlangSession * session,
char const * name )
参见
slang::IGlobalSession::findProfile

◆ spGetCompileFlags()

SLANG_API SlangCompileFlags spGetCompileFlags ( SlangCompileRequest * request)
参见
slang::ICompileRequest::getCompileFlags

◆ spGetCompileRequestCode()

SLANG_API void const * spGetCompileRequestCode ( SlangCompileRequest * request,
size_t * outSize )
参见
slang::ICompileRequest::getCompileRequestCode

◆ spGetCompileTimeProfile()

SLANG_API SlangResult spGetCompileTimeProfile ( SlangCompileRequest * request,
ISlangProfiler ** compileTimeProfile,
bool shouldClear )
参见
slang::ICompileRequest::getCompileTimeProfile

◆ spGetContainerCode()

SLANG_API SlangResult spGetContainerCode ( SlangCompileRequest * request,
ISlangBlob ** outBlob )
参见
slang::ICompileRequest::getContainerCode

◆ spGetDependencyFileCount()

SLANG_API int spGetDependencyFileCount ( SlangCompileRequest * request)
参见
slang::ICompileRequest::getDependencyFileCount

◆ spGetDependencyFilePath()

SLANG_API char const * spGetDependencyFilePath ( SlangCompileRequest * request,
int index )
参见
slang::ICompileRequest::getDependencyFilePath

◆ spGetDiagnosticFlags()

SLANG_API SlangDiagnosticFlags spGetDiagnosticFlags ( SlangCompileRequest * request)
参见
slang::ICompileRequest::getDiagnosticFlags

◆ spGetDiagnosticOutput()

SLANG_API char const * spGetDiagnosticOutput ( SlangCompileRequest * request)
参见
slang::ICompileRequest::getDiagnosticOutput

◆ spGetDiagnosticOutputBlob()

SLANG_API SlangResult spGetDiagnosticOutputBlob ( SlangCompileRequest * request,
ISlangBlob ** outBlob )
参见
slang::ICompileRequest::getDiagnosticOutputBlob

◆ spGetEntryPointCode()

SLANG_API void const * spGetEntryPointCode ( SlangCompileRequest * request,
int entryPointIndex,
size_t * outSize )
参见
slang::ICompileRequest::getEntryPointCode

◆ spGetEntryPointCodeBlob()

SLANG_API SlangResult spGetEntryPointCodeBlob ( SlangCompileRequest * request,
int entryPointIndex,
int targetIndex,
ISlangBlob ** outBlob )
参见
slang::ICompileRequest::getEntryPointCodeBlob

◆ spGetEntryPointHostCallable()

SLANG_API SlangResult spGetEntryPointHostCallable ( SlangCompileRequest * request,
int entryPointIndex,
int targetIndex,
ISlangSharedLibrary ** outSharedLibrary )
参见
slang::ICompileRequest::getEntryPointHostCallable

◆ spGetEntryPointSource()

SLANG_API char const * spGetEntryPointSource ( SlangCompileRequest * request,
int entryPointIndex )
参见
slang::ICompileRequest::getEntryPointSource

◆ spGetReflection()

SLANG_API SlangReflection * spGetReflection ( SlangCompileRequest * request)

◆ spGetTargetCodeBlob()

SLANG_API SlangResult spGetTargetCodeBlob ( SlangCompileRequest * request,
int targetIndex,
ISlangBlob ** outBlob )
参见
slang::ICompileRequest::getTargetCodeBlob

◆ spGetTargetHostCallable()

SLANG_API SlangResult spGetTargetHostCallable ( SlangCompileRequest * request,
int targetIndex,
ISlangSharedLibrary ** outSharedLibrary )
参见
slang::ICompileRequest::getTargetHostCallable

◆ spGetTranslationUnitCount()

SLANG_API int spGetTranslationUnitCount ( SlangCompileRequest * request)
参见
slang::ICompileRequest::getTranslationUnitCount

◆ spGetTranslationUnitSource()

SLANG_API char const * spGetTranslationUnitSource ( SlangCompileRequest * request,
int translationUnitIndex )

◆ spGetWriter()

SLANG_API ISlangWriter * spGetWriter ( SlangCompileRequest * request,
SlangWriterChannel channel )
参见
slang::ICompileRequest::getWriter

◆ spIsParameterLocationUsed()

SLANG_API SlangResult spIsParameterLocationUsed ( SlangCompileRequest * request,
SlangInt entryPointIndex,
SlangInt targetIndex,
SlangParameterCategory category,
SlangUInt spaceIndex,
SlangUInt registerIndex,
bool & outUsed )

◆ spLoadRepro()

SLANG_API SlangResult spLoadRepro ( SlangCompileRequest * request,
ISlangFileSystem * fileSystem,
const void * data,
size_t size )
参见
slang::ICompileRequest::loadRepro

◆ spLoadReproAsFileSystem()

SLANG_API SlangResult spLoadReproAsFileSystem ( SlangSession * session,
const void * reproData,
size_t reproDataSize,
ISlangFileSystem * replaceFileSystem,
ISlangFileSystemExt ** outFileSystem )

◆ spOverrideDiagnosticSeverity()

SLANG_API void spOverrideDiagnosticSeverity ( SlangCompileRequest * request,
SlangInt messageID,
SlangSeverity overrideSeverity )
参见
slang::ICompileRequest::overrideDiagnosticSeverity

◆ spProcessCommandLineArguments()

SLANG_API SlangResult spProcessCommandLineArguments ( SlangCompileRequest * request,
char const *const * args,
int argCount )
参见
slang::ICompileRequest::processCommandLineArguments

◆ spReflection_findEntryPointByName()

SLANG_API SlangReflectionEntryPoint * spReflection_findEntryPointByName ( SlangReflection * reflection,
char const * name )

◆ spReflection_FindFunctionByName()

SLANG_API SlangReflectionFunction * spReflection_FindFunctionByName ( SlangReflection * reflection,
char const * name )

◆ spReflection_FindFunctionByNameInType()

SLANG_API SlangReflectionFunction * spReflection_FindFunctionByNameInType ( SlangReflection * reflection,
SlangReflectionType * reflType,
char const * name )

◆ spReflection_FindTypeByName()

SLANG_API SlangReflectionType * spReflection_FindTypeByName ( SlangReflection * reflection,
char const * name )

◆ spReflection_FindTypeParameter()

SLANG_API SlangReflectionTypeParameter * spReflection_FindTypeParameter ( SlangReflection * reflection,
char const * name )

◆ spReflection_FindVarByNameInType()

SLANG_API SlangReflectionVariable * spReflection_FindVarByNameInType ( SlangReflection * reflection,
SlangReflectionType * reflType,
char const * name )

◆ spReflection_getBindlessSpaceIndex()

SLANG_API SlangInt spReflection_getBindlessSpaceIndex ( SlangReflection * reflection)

Get the descriptor set/space index allocated for the bindless resource heap. Returns -1 if the program does not use bindless resource heap.

◆ spReflection_getEntryPointByIndex()

SLANG_API SlangReflectionEntryPoint * spReflection_getEntryPointByIndex ( SlangReflection * reflection,
SlangUInt index )

◆ spReflection_getEntryPointCount()

SLANG_API SlangUInt spReflection_getEntryPointCount ( SlangReflection * reflection)

◆ spReflection_getGlobalConstantBufferBinding()

SLANG_API SlangUInt spReflection_getGlobalConstantBufferBinding ( SlangReflection * reflection)

Get the binding index for the global constant buffer.

Returns SLANG_UNKNOWN_SIZE when the binding depends on unresolved generic parameters or link-time constants.

◆ spReflection_getGlobalConstantBufferSize()

SLANG_API size_t spReflection_getGlobalConstantBufferSize ( SlangReflection * reflection)

Get the size of the global constant buffer.

Returns SLANG_UNBOUNDED_SIZE for unbounded resources. Returns SLANG_UNKNOWN_SIZE when the size depends on unresolved generic parameters or link-time constants.

◆ spReflection_getGlobalParamsTypeLayout()

SLANG_API SlangReflectionTypeLayout * spReflection_getGlobalParamsTypeLayout ( SlangReflection * reflection)

Get a type layout representing reflection information for the global-scope parameters.

◆ spReflection_getGlobalParamsVarLayout()

SLANG_API SlangReflectionVariableLayout * spReflection_getGlobalParamsVarLayout ( SlangReflection * reflection)

Get a variable layout representing reflection information for the global-scope parameters.

◆ spReflection_getHashedString()

SLANG_API const char * spReflection_getHashedString ( SlangReflection * reflection,
SlangUInt index,
size_t * outCount )

Get a hashed string. The number of chars is written in outCount. The count does NOT including terminating 0. The returned string will be 0 terminated.

◆ spReflection_getHashedStringCount()

SLANG_API SlangUInt spReflection_getHashedStringCount ( SlangReflection * reflection)

Get the number of hashed strings

◆ spReflection_GetParameterByIndex()

SLANG_API SlangReflectionParameter * spReflection_GetParameterByIndex ( SlangReflection * reflection,
unsigned index )

◆ spReflection_GetParameterCount()

SLANG_API unsigned spReflection_GetParameterCount ( SlangReflection * reflection)

◆ spReflection_getTypeFromDecl()

SLANG_API SlangReflectionType * spReflection_getTypeFromDecl ( SlangReflectionDecl * decl)

◆ spReflection_GetTypeLayout()

SLANG_API SlangReflectionTypeLayout * spReflection_GetTypeLayout ( SlangReflection * reflection,
SlangReflectionType * reflectionType,
SlangLayoutRules rules )

◆ spReflection_GetTypeParameterByIndex()

SLANG_API SlangReflectionTypeParameter * spReflection_GetTypeParameterByIndex ( SlangReflection * reflection,
unsigned int index )

◆ spReflection_GetTypeParameterCount()

SLANG_API unsigned int spReflection_GetTypeParameterCount ( SlangReflection * reflection)

◆ spReflection_isSubType()

SLANG_API bool spReflection_isSubType ( SlangReflection * reflection,
SlangReflectionType * subType,
SlangReflectionType * superType )

◆ spReflection_specializeGeneric()

SLANG_API SlangReflectionGeneric * spReflection_specializeGeneric ( SlangReflection * inProgramLayout,
SlangReflectionGeneric * generic,
SlangInt argCount,
SlangReflectionGenericArgType const * argTypes,
SlangReflectionGenericArg const * args,
ISlangBlob ** outDiagnostics )

◆ spReflection_specializeType()

SLANG_API SlangReflectionType * spReflection_specializeType ( SlangReflection * reflection,
SlangReflectionType * type,
SlangInt specializationArgCount,
SlangReflectionType *const * specializationArgs,
ISlangBlob ** outDiagnostics )

◆ spReflection_ToJson()

SLANG_API SlangResult spReflection_ToJson ( SlangReflection * reflection,
SlangCompileRequest * request,
ISlangBlob ** outBlob )

◆ spReflection_TryResolveOverloadedFunction()

SLANG_API SlangReflectionFunction * spReflection_TryResolveOverloadedFunction ( SlangReflection * reflection,
uint32_t candidateCount,
SlangReflectionFunction ** candidates )

◆ spReflectionDecl_castToFunction()

SLANG_API SlangReflectionFunction * spReflectionDecl_castToFunction ( SlangReflectionDecl * decl)

◆ spReflectionDecl_castToGeneric()

SLANG_API SlangReflectionGeneric * spReflectionDecl_castToGeneric ( SlangReflectionDecl * decl)

◆ spReflectionDecl_castToVariable()

SLANG_API SlangReflectionVariable * spReflectionDecl_castToVariable ( SlangReflectionDecl * decl)

◆ spReflectionDecl_findModifier()

SLANG_API SlangReflectionModifier * spReflectionDecl_findModifier ( SlangReflectionDecl * decl,
SlangModifierID modifierID )

◆ spReflectionDecl_getChild()

SLANG_API SlangReflectionDecl * spReflectionDecl_getChild ( SlangReflectionDecl * parentDecl,
unsigned int index )

◆ spReflectionDecl_getChildrenCount()

SLANG_API unsigned int spReflectionDecl_getChildrenCount ( SlangReflectionDecl * parentDecl)

◆ spReflectionDecl_getKind()

SLANG_API SlangDeclKind spReflectionDecl_getKind ( SlangReflectionDecl * decl)

◆ spReflectionDecl_getName()

SLANG_API char const * spReflectionDecl_getName ( SlangReflectionDecl * decl)

◆ spReflectionDecl_getParent()

SLANG_API SlangReflectionDecl * spReflectionDecl_getParent ( SlangReflectionDecl * decl)

◆ spReflectionEntryPoint_getComputeThreadGroupSize()

SLANG_API void spReflectionEntryPoint_getComputeThreadGroupSize ( SlangReflectionEntryPoint * entryPoint,
SlangUInt axisCount,
SlangUInt * outSizeAlongAxis )

◆ spReflectionEntryPoint_getComputeWaveSize()

SLANG_API void spReflectionEntryPoint_getComputeWaveSize ( SlangReflectionEntryPoint * entryPoint,
SlangUInt * outWaveSize )

◆ spReflectionEntryPoint_getFunction()

SLANG_API SlangReflectionFunction * spReflectionEntryPoint_getFunction ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_getName()

SLANG_API char const * spReflectionEntryPoint_getName ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_getNameOverride()

SLANG_API char const * spReflectionEntryPoint_getNameOverride ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_getParameterByIndex()

SLANG_API SlangReflectionVariableLayout * spReflectionEntryPoint_getParameterByIndex ( SlangReflectionEntryPoint * entryPoint,
unsigned index )

◆ spReflectionEntryPoint_getParameterCount()

SLANG_API unsigned spReflectionEntryPoint_getParameterCount ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_getResultVarLayout()

SLANG_API SlangReflectionVariableLayout * spReflectionEntryPoint_getResultVarLayout ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_getStage()

SLANG_API SlangStage spReflectionEntryPoint_getStage ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_getVarLayout()

SLANG_API SlangReflectionVariableLayout * spReflectionEntryPoint_getVarLayout ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_hasDefaultConstantBuffer()

SLANG_API int spReflectionEntryPoint_hasDefaultConstantBuffer ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionEntryPoint_usesAnySampleRateInput()

SLANG_API int spReflectionEntryPoint_usesAnySampleRateInput ( SlangReflectionEntryPoint * entryPoint)

◆ spReflectionFunction_applySpecializations()

SLANG_API SlangReflectionFunction * spReflectionFunction_applySpecializations ( SlangReflectionFunction * func,
SlangReflectionGeneric * generic )

◆ spReflectionFunction_asDecl()

SLANG_API SlangReflectionDecl * spReflectionFunction_asDecl ( SlangReflectionFunction * func)

◆ spReflectionFunction_FindModifier()

SLANG_API SlangReflectionModifier * spReflectionFunction_FindModifier ( SlangReflectionFunction * var,
SlangModifierID modifierID )

◆ spReflectionFunction_FindUserAttributeByName()

SLANG_API SlangReflectionUserAttribute * spReflectionFunction_FindUserAttributeByName ( SlangReflectionFunction * func,
SlangSession * globalSession,
char const * name )

◆ spReflectionFunction_GetGenericContainer()

SLANG_API SlangReflectionGeneric * spReflectionFunction_GetGenericContainer ( SlangReflectionFunction * func)

◆ spReflectionFunction_GetName()

SLANG_API char const * spReflectionFunction_GetName ( SlangReflectionFunction * func)

◆ spReflectionFunction_getOverload()

SLANG_API SlangReflectionFunction * spReflectionFunction_getOverload ( SlangReflectionFunction * func,
unsigned int index )

◆ spReflectionFunction_getOverloadCount()

SLANG_API unsigned int spReflectionFunction_getOverloadCount ( SlangReflectionFunction * func)

◆ spReflectionFunction_GetParameter()

SLANG_API SlangReflectionVariable * spReflectionFunction_GetParameter ( SlangReflectionFunction * func,
unsigned index )

◆ spReflectionFunction_GetParameterCount()

SLANG_API unsigned int spReflectionFunction_GetParameterCount ( SlangReflectionFunction * func)

◆ spReflectionFunction_GetResultType()

SLANG_API SlangReflectionType * spReflectionFunction_GetResultType ( SlangReflectionFunction * func)

◆ spReflectionFunction_GetUserAttribute()

SLANG_API SlangReflectionUserAttribute * spReflectionFunction_GetUserAttribute ( SlangReflectionFunction * func,
unsigned int index )

◆ spReflectionFunction_GetUserAttributeCount()

SLANG_API unsigned int spReflectionFunction_GetUserAttributeCount ( SlangReflectionFunction * func)

◆ spReflectionFunction_isOverloaded()

SLANG_API bool spReflectionFunction_isOverloaded ( SlangReflectionFunction * func)

◆ spReflectionFunction_specializeWithArgTypes()

SLANG_API SlangReflectionFunction * spReflectionFunction_specializeWithArgTypes ( SlangReflectionFunction * func,
SlangInt argTypeCount,
SlangReflectionType *const * argTypes )

◆ spReflectionGeneric_applySpecializations()

SLANG_API SlangReflectionGeneric * spReflectionGeneric_applySpecializations ( SlangReflectionGeneric * currGeneric,
SlangReflectionGeneric * generic )

◆ spReflectionGeneric_asDecl()

SLANG_API SlangReflectionDecl * spReflectionGeneric_asDecl ( SlangReflectionGeneric * generic)

◆ spReflectionGeneric_GetConcreteIntVal()

SLANG_API int64_t spReflectionGeneric_GetConcreteIntVal ( SlangReflectionGeneric * generic,
SlangReflectionVariable * valueParam )

◆ spReflectionGeneric_GetConcreteType()

SLANG_API SlangReflectionType * spReflectionGeneric_GetConcreteType ( SlangReflectionGeneric * generic,
SlangReflectionVariable * typeParam )

◆ spReflectionGeneric_GetInnerDecl()

SLANG_API SlangReflectionDecl * spReflectionGeneric_GetInnerDecl ( SlangReflectionGeneric * generic)

◆ spReflectionGeneric_GetInnerKind()

SLANG_API SlangDeclKind spReflectionGeneric_GetInnerKind ( SlangReflectionGeneric * generic)

◆ spReflectionGeneric_GetName()

SLANG_API char const * spReflectionGeneric_GetName ( SlangReflectionGeneric * generic)

◆ spReflectionGeneric_GetOuterGenericContainer()

SLANG_API SlangReflectionGeneric * spReflectionGeneric_GetOuterGenericContainer ( SlangReflectionGeneric * generic)

◆ spReflectionGeneric_GetTypeParameter()

SLANG_API SlangReflectionVariable * spReflectionGeneric_GetTypeParameter ( SlangReflectionGeneric * generic,
unsigned index )

◆ spReflectionGeneric_GetTypeParameterConstraintCount()

SLANG_API unsigned int spReflectionGeneric_GetTypeParameterConstraintCount ( SlangReflectionGeneric * generic,
SlangReflectionVariable * typeParam )

◆ spReflectionGeneric_GetTypeParameterConstraintType()

SLANG_API SlangReflectionType * spReflectionGeneric_GetTypeParameterConstraintType ( SlangReflectionGeneric * generic,
SlangReflectionVariable * typeParam,
unsigned index )

◆ spReflectionGeneric_GetTypeParameterCount()

SLANG_API unsigned int spReflectionGeneric_GetTypeParameterCount ( SlangReflectionGeneric * generic)

◆ spReflectionGeneric_GetValueParameter()

SLANG_API SlangReflectionVariable * spReflectionGeneric_GetValueParameter ( SlangReflectionGeneric * generic,
unsigned index )

◆ spReflectionGeneric_GetValueParameterCount()

SLANG_API unsigned int spReflectionGeneric_GetValueParameterCount ( SlangReflectionGeneric * generic)

◆ spReflectionParameter_GetBindingIndex()

SLANG_API unsigned spReflectionParameter_GetBindingIndex ( SlangReflectionParameter * parameter)

Get the binding index for a shader parameter.

Returns SLANG_UNKNOWN_SIZE when the index depends on unresolved generic parameters or link-time constants.

◆ spReflectionParameter_GetBindingSpace()

SLANG_API unsigned spReflectionParameter_GetBindingSpace ( SlangReflectionParameter * parameter)

Get the binding space for a shader parameter.

Returns SLANG_UNKNOWN_SIZE when the space depends on unresolved generic parameters or link-time constants.

◆ spReflectionType_applySpecializations()

SLANG_API SlangReflectionType * spReflectionType_applySpecializations ( SlangReflectionType * type,
SlangReflectionGeneric * generic )

◆ spReflectionType_FindUserAttributeByName()

SLANG_API SlangReflectionUserAttribute * spReflectionType_FindUserAttributeByName ( SlangReflectionType * type,
char const * name )

◆ spReflectionType_GetColumnCount()

SLANG_API unsigned int spReflectionType_GetColumnCount ( SlangReflectionType * type)

◆ spReflectionType_GetElementCount()

SLANG_API size_t spReflectionType_GetElementCount ( SlangReflectionType * type)

Returns the number of elements in the given type.

This operation is valid for vector and array types. For other types it returns zero.

When invoked on an unbounded-size array it will return SLANG_UNBOUNDED_SIZE, which is defined to be ~size_t(0).

If the size of a type cannot be statically computed, perhaps because it depends on a generic parameter that has not been bound to a specific value, this function returns zero.

Use spReflectionType_GetSpecializedElementCount if the size is dependent on a link time constant

◆ spReflectionType_GetElementType()

SLANG_API SlangReflectionType * spReflectionType_GetElementType ( SlangReflectionType * type)

◆ spReflectionType_GetFieldByIndex()

SLANG_API SlangReflectionVariable * spReflectionType_GetFieldByIndex ( SlangReflectionType * type,
unsigned index )

◆ spReflectionType_GetFieldCount()

SLANG_API unsigned int spReflectionType_GetFieldCount ( SlangReflectionType * type)

◆ spReflectionType_GetFullName()

SLANG_API SlangResult spReflectionType_GetFullName ( SlangReflectionType * type,
ISlangBlob ** outNameBlob )

◆ spReflectionType_GetGenericContainer()

SLANG_API SlangReflectionGeneric * spReflectionType_GetGenericContainer ( SlangReflectionType * type)

◆ spReflectionType_GetKind()

SLANG_API SlangTypeKind spReflectionType_GetKind ( SlangReflectionType * type)

◆ spReflectionType_GetName()

SLANG_API char const * spReflectionType_GetName ( SlangReflectionType * type)

◆ spReflectionType_GetResourceAccess()

SLANG_API SlangResourceAccess spReflectionType_GetResourceAccess ( SlangReflectionType * type)

◆ spReflectionType_GetResourceResultType()

SLANG_API SlangReflectionType * spReflectionType_GetResourceResultType ( SlangReflectionType * type)

◆ spReflectionType_GetResourceShape()

SLANG_API SlangResourceShape spReflectionType_GetResourceShape ( SlangReflectionType * type)

◆ spReflectionType_GetRowCount()

SLANG_API unsigned int spReflectionType_GetRowCount ( SlangReflectionType * type)

◆ spReflectionType_GetScalarType()

SLANG_API SlangScalarType spReflectionType_GetScalarType ( SlangReflectionType * type)

◆ spReflectionType_GetSpecializedElementCount()

SLANG_API size_t spReflectionType_GetSpecializedElementCount ( SlangReflectionType * type,
SlangReflection * reflection )

The same as spReflectionType_GetElementCount except it takes into account specialization information from the given reflection info

◆ spReflectionType_getSpecializedTypeArgCount()

SLANG_API SlangInt spReflectionType_getSpecializedTypeArgCount ( SlangReflectionType * type)

◆ spReflectionType_getSpecializedTypeArgType()

SLANG_API SlangReflectionType * spReflectionType_getSpecializedTypeArgType ( SlangReflectionType * type,
SlangInt index )

◆ spReflectionType_GetUserAttribute()

SLANG_API SlangReflectionUserAttribute * spReflectionType_GetUserAttribute ( SlangReflectionType * type,
unsigned int index )

◆ spReflectionType_GetUserAttributeCount()

SLANG_API unsigned int spReflectionType_GetUserAttributeCount ( SlangReflectionType * type)

◆ spReflectionTypeLayout_findFieldIndexByName()

SLANG_API SlangInt spReflectionTypeLayout_findFieldIndexByName ( SlangReflectionTypeLayout * typeLayout,
const char * nameBegin,
const char * nameEnd )

◆ spReflectionTypeLayout_getAlignment()

SLANG_API int32_t spReflectionTypeLayout_getAlignment ( SlangReflectionTypeLayout * type,
SlangParameterCategory category )

◆ spReflectionTypeLayout_getBindingRangeBindingCount()

SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeBindingCount ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

Get the binding count for a binding range at the specified index.

Returns SLANG_UNBOUNDED_SIZE for unbounded resources. Returns SLANG_UNKNOWN_SIZE when the count depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_getBindingRangeCount()

SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeCount ( SlangReflectionTypeLayout * typeLayout)

◆ spReflectionTypeLayout_getBindingRangeDescriptorRangeCount()

SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeDescriptorRangeCount ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_getBindingRangeDescriptorSetIndex()

SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeDescriptorSetIndex ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_getBindingRangeFirstDescriptorRangeIndex()

SLANG_API SlangInt spReflectionTypeLayout_getBindingRangeFirstDescriptorRangeIndex ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_getBindingRangeImageFormat()

SLANG_API SlangImageFormat spReflectionTypeLayout_getBindingRangeImageFormat ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_getBindingRangeLeafTypeLayout()

SLANG_API SlangReflectionTypeLayout * spReflectionTypeLayout_getBindingRangeLeafTypeLayout ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_getBindingRangeLeafVariable()

SLANG_API SlangReflectionVariable * spReflectionTypeLayout_getBindingRangeLeafVariable ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_getBindingRangeType()

SLANG_API SlangBindingType spReflectionTypeLayout_getBindingRangeType ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeLayout_GetCategoryByIndex()

SLANG_API SlangParameterCategory spReflectionTypeLayout_GetCategoryByIndex ( SlangReflectionTypeLayout * type,
unsigned index )

◆ spReflectionTypeLayout_GetCategoryCount()

SLANG_API unsigned spReflectionTypeLayout_GetCategoryCount ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_getContainerVarLayout()

SLANG_API SlangReflectionVariableLayout * spReflectionTypeLayout_getContainerVarLayout ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_getDescriptorSetCount()

SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetCount ( SlangReflectionTypeLayout * typeLayout)

◆ spReflectionTypeLayout_getDescriptorSetDescriptorRangeCategory()

SLANG_API SlangParameterCategory spReflectionTypeLayout_getDescriptorSetDescriptorRangeCategory ( SlangReflectionTypeLayout * typeLayout,
SlangInt setIndex,
SlangInt rangeIndex )

◆ spReflectionTypeLayout_getDescriptorSetDescriptorRangeCount()

SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetDescriptorRangeCount ( SlangReflectionTypeLayout * typeLayout,
SlangInt setIndex )

◆ spReflectionTypeLayout_getDescriptorSetDescriptorRangeDescriptorCount()

SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetDescriptorRangeDescriptorCount ( SlangReflectionTypeLayout * typeLayout,
SlangInt setIndex,
SlangInt rangeIndex )

Get the descriptor count for a descriptor range within a descriptor set.

Returns SLANG_UNBOUNDED_SIZE for unbounded resources. Returns SLANG_UNKNOWN_SIZE when the count depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_getDescriptorSetDescriptorRangeIndexOffset()

SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetDescriptorRangeIndexOffset ( SlangReflectionTypeLayout * typeLayout,
SlangInt setIndex,
SlangInt rangeIndex )

Get the index offset for a descriptor range within a descriptor set.

Returns SLANG_UNKNOWN_SIZE when the offset depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_getDescriptorSetDescriptorRangeType()

SLANG_API SlangBindingType spReflectionTypeLayout_getDescriptorSetDescriptorRangeType ( SlangReflectionTypeLayout * typeLayout,
SlangInt setIndex,
SlangInt rangeIndex )

◆ spReflectionTypeLayout_getDescriptorSetSpaceOffset()

SLANG_API SlangInt spReflectionTypeLayout_getDescriptorSetSpaceOffset ( SlangReflectionTypeLayout * typeLayout,
SlangInt setIndex )

◆ spReflectionTypeLayout_GetElementStride()

SLANG_API size_t spReflectionTypeLayout_GetElementStride ( SlangReflectionTypeLayout * type,
SlangParameterCategory category )

Get the stride between elements of an array type layout.

Returns SLANG_UNBOUNDED_SIZE for unbounded resources. Returns SLANG_UNKNOWN_SIZE when element stride depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_GetElementTypeLayout()

SLANG_API SlangReflectionTypeLayout * spReflectionTypeLayout_GetElementTypeLayout ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_GetElementVarLayout()

SLANG_API SlangReflectionVariableLayout * spReflectionTypeLayout_GetElementVarLayout ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_GetExplicitCounter()

SLANG_API SlangReflectionVariableLayout * spReflectionTypeLayout_GetExplicitCounter ( SlangReflectionTypeLayout * typeLayout)

◆ spReflectionTypeLayout_getExplicitCounterBindingRangeOffset()

SLANG_API SlangInt spReflectionTypeLayout_getExplicitCounterBindingRangeOffset ( SlangReflectionTypeLayout * inTypeLayout)

◆ spReflectionTypeLayout_getFieldBindingRangeOffset()

SLANG_API SlangInt spReflectionTypeLayout_getFieldBindingRangeOffset ( SlangReflectionTypeLayout * typeLayout,
SlangInt fieldIndex )

◆ spReflectionTypeLayout_GetFieldByIndex()

SLANG_API SlangReflectionVariableLayout * spReflectionTypeLayout_GetFieldByIndex ( SlangReflectionTypeLayout * type,
unsigned index )

◆ spReflectionTypeLayout_GetFieldCount()

SLANG_API uint32_t spReflectionTypeLayout_GetFieldCount ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_getGenericParamIndex()

SLANG_API int spReflectionTypeLayout_getGenericParamIndex ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_getKind()

SLANG_API SlangTypeKind spReflectionTypeLayout_getKind ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_GetMatrixLayoutMode()

SLANG_API SlangMatrixLayoutMode spReflectionTypeLayout_GetMatrixLayoutMode ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_GetParameterCategory()

SLANG_API SlangParameterCategory spReflectionTypeLayout_GetParameterCategory ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_getPendingDataTypeLayout()

SLANG_API SlangReflectionTypeLayout * spReflectionTypeLayout_getPendingDataTypeLayout ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_GetSize()

SLANG_API size_t spReflectionTypeLayout_GetSize ( SlangReflectionTypeLayout * type,
SlangParameterCategory category )

Get the size of a type layout in the specified parameter category.

Returns SLANG_UNBOUNDED_SIZE for unbounded resources (e.g., unsized arrays). Returns SLANG_UNKNOWN_SIZE when the size depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_getSpecializedTypePendingDataVarLayout()

SLANG_API SlangReflectionVariableLayout * spReflectionTypeLayout_getSpecializedTypePendingDataVarLayout ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_GetStride()

SLANG_API size_t spReflectionTypeLayout_GetStride ( SlangReflectionTypeLayout * type,
SlangParameterCategory category )

Get the stride of a type layout in the specified parameter category.

Returns SLANG_UNBOUNDED_SIZE for unbounded resources. Returns SLANG_UNKNOWN_SIZE when stride depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_getSubObjectRangeBindingRangeIndex()

SLANG_API SlangInt spReflectionTypeLayout_getSubObjectRangeBindingRangeIndex ( SlangReflectionTypeLayout * typeLayout,
SlangInt subObjectRangeIndex )

◆ spReflectionTypeLayout_getSubObjectRangeCount()

SLANG_API SlangInt spReflectionTypeLayout_getSubObjectRangeCount ( SlangReflectionTypeLayout * typeLayout)

◆ spReflectionTypeLayout_getSubObjectRangeOffset()

SLANG_API SlangReflectionVariableLayout * spReflectionTypeLayout_getSubObjectRangeOffset ( SlangReflectionTypeLayout * typeLayout,
SlangInt subObjectRangeIndex )

◆ spReflectionTypeLayout_getSubObjectRangeSpaceOffset()

SLANG_API SlangInt spReflectionTypeLayout_getSubObjectRangeSpaceOffset ( SlangReflectionTypeLayout * typeLayout,
SlangInt subObjectRangeIndex )

Get the space offset for a sub-object range.

Returns SLANG_UNKNOWN_SIZE when the offset depends on unresolved generic parameters or link-time constants.

◆ spReflectionTypeLayout_GetType()

SLANG_API SlangReflectionType * spReflectionTypeLayout_GetType ( SlangReflectionTypeLayout * type)

◆ spReflectionTypeLayout_isBindingRangeSpecializable()

SLANG_API SlangInt spReflectionTypeLayout_isBindingRangeSpecializable ( SlangReflectionTypeLayout * typeLayout,
SlangInt index )

◆ spReflectionTypeParameter_GetConstraintByIndex()

SLANG_API SlangReflectionType * spReflectionTypeParameter_GetConstraintByIndex ( SlangReflectionTypeParameter * typeParam,
unsigned int index )

◆ spReflectionTypeParameter_GetConstraintCount()

SLANG_API unsigned spReflectionTypeParameter_GetConstraintCount ( SlangReflectionTypeParameter * typeParam)

◆ spReflectionTypeParameter_GetIndex()

SLANG_API unsigned spReflectionTypeParameter_GetIndex ( SlangReflectionTypeParameter * typeParam)

◆ spReflectionTypeParameter_GetName()

SLANG_API char const * spReflectionTypeParameter_GetName ( SlangReflectionTypeParameter * typeParam)

◆ spReflectionUserAttribute_GetArgumentCount()

SLANG_API unsigned int spReflectionUserAttribute_GetArgumentCount ( SlangReflectionUserAttribute * attrib)

◆ spReflectionUserAttribute_GetArgumentType()

SLANG_API SlangReflectionType * spReflectionUserAttribute_GetArgumentType ( SlangReflectionUserAttribute * attrib,
unsigned int index )

◆ spReflectionUserAttribute_GetArgumentValueFloat()

SLANG_API SlangResult spReflectionUserAttribute_GetArgumentValueFloat ( SlangReflectionUserAttribute * attrib,
unsigned int index,
float * rs )

◆ spReflectionUserAttribute_GetArgumentValueInt()

SLANG_API SlangResult spReflectionUserAttribute_GetArgumentValueInt ( SlangReflectionUserAttribute * attrib,
unsigned int index,
int * rs )

◆ spReflectionUserAttribute_GetArgumentValueString()

SLANG_API const char * spReflectionUserAttribute_GetArgumentValueString ( SlangReflectionUserAttribute * attrib,
unsigned int index,
size_t * outSize )

Returns the string-typed value of a user attribute argument The string returned is not null-terminated. The length of the string is returned via outSize. If index of out of range, or if the specified argument is not a string, the function will return nullptr.

◆ spReflectionUserAttribute_GetName()

SLANG_API char const * spReflectionUserAttribute_GetName ( SlangReflectionUserAttribute * attrib)

◆ spReflectionVariable_applySpecializations()

SLANG_API SlangReflectionVariable * spReflectionVariable_applySpecializations ( SlangReflectionVariable * var,
SlangReflectionGeneric * generic )

◆ spReflectionVariable_FindModifier()

SLANG_API SlangReflectionModifier * spReflectionVariable_FindModifier ( SlangReflectionVariable * var,
SlangModifierID modifierID )

◆ spReflectionVariable_FindUserAttributeByName()

SLANG_API SlangReflectionUserAttribute * spReflectionVariable_FindUserAttributeByName ( SlangReflectionVariable * var,
SlangSession * globalSession,
char const * name )

◆ spReflectionVariable_GetDefaultValueFloat()

SLANG_API SlangResult spReflectionVariable_GetDefaultValueFloat ( SlangReflectionVariable * inVar,
float * rs )

◆ spReflectionVariable_GetDefaultValueInt()

SLANG_API SlangResult spReflectionVariable_GetDefaultValueInt ( SlangReflectionVariable * inVar,
int64_t * rs )

◆ spReflectionVariable_GetGenericContainer()

SLANG_API SlangReflectionGeneric * spReflectionVariable_GetGenericContainer ( SlangReflectionVariable * var)

◆ spReflectionVariable_GetName()

SLANG_API char const * spReflectionVariable_GetName ( SlangReflectionVariable * var)

◆ spReflectionVariable_GetType()

SLANG_API SlangReflectionType * spReflectionVariable_GetType ( SlangReflectionVariable * var)

◆ spReflectionVariable_GetUserAttribute()

SLANG_API SlangReflectionUserAttribute * spReflectionVariable_GetUserAttribute ( SlangReflectionVariable * var,
unsigned int index )

◆ spReflectionVariable_GetUserAttributeCount()

SLANG_API unsigned int spReflectionVariable_GetUserAttributeCount ( SlangReflectionVariable * var)

◆ spReflectionVariable_HasDefaultValue()

SLANG_API bool spReflectionVariable_HasDefaultValue ( SlangReflectionVariable * inVar)

◆ spReflectionVariableLayout_GetImageFormat()

SLANG_API SlangImageFormat spReflectionVariableLayout_GetImageFormat ( SlangReflectionVariableLayout * var)

◆ spReflectionVariableLayout_GetOffset()

SLANG_API size_t spReflectionVariableLayout_GetOffset ( SlangReflectionVariableLayout * var,
SlangParameterCategory category )

Get the offset of a variable in the specified parameter category.

Returns SLANG_UNKNOWN_SIZE when the offset depends on unresolved generic parameters or link-time constants.

◆ spReflectionVariableLayout_getPendingDataLayout()

SLANG_API SlangReflectionVariableLayout * spReflectionVariableLayout_getPendingDataLayout ( SlangReflectionVariableLayout * var)

◆ spReflectionVariableLayout_GetSemanticIndex()

SLANG_API size_t spReflectionVariableLayout_GetSemanticIndex ( SlangReflectionVariableLayout * var)

◆ spReflectionVariableLayout_GetSemanticName()

SLANG_API char const * spReflectionVariableLayout_GetSemanticName ( SlangReflectionVariableLayout * var)

◆ spReflectionVariableLayout_GetSpace()

SLANG_API size_t spReflectionVariableLayout_GetSpace ( SlangReflectionVariableLayout * var,
SlangParameterCategory category )

Get the register space/set of a variable in the specified parameter category.

Returns SLANG_UNKNOWN_SIZE when the space depends on unresolved generic parameters or link-time constants.

◆ spReflectionVariableLayout_getStage()

SLANG_API SlangStage spReflectionVariableLayout_getStage ( SlangReflectionVariableLayout * var)

Get the stage that a variable belongs to (if any).

A variable "belongs" to a specific stage when it is a varying input/output parameter either defined as part of the parameter list for an entry point or at the global scope of a stage-specific GLSL code file (e.g., an in parameter in a GLSL .vs file belongs to the vertex stage).

◆ spReflectionVariableLayout_GetTypeLayout()

SLANG_API SlangReflectionTypeLayout * spReflectionVariableLayout_GetTypeLayout ( SlangReflectionVariableLayout * var)

◆ spReflectionVariableLayout_GetVariable()

SLANG_API SlangReflectionVariable * spReflectionVariableLayout_GetVariable ( SlangReflectionVariableLayout * var)

◆ spSaveRepro()

SLANG_API SlangResult spSaveRepro ( SlangCompileRequest * request,
ISlangBlob ** outBlob )
参见
slang::ICompileRequest::saveRepro

◆ spSessionCheckCompileTargetSupport()

SLANG_API SlangResult spSessionCheckCompileTargetSupport ( SlangSession * session,
SlangCompileTarget target )
参见
slang::IGlobalSession::checkCompileTargetSupport

◆ spSessionCheckPassThroughSupport()

SLANG_API SlangResult spSessionCheckPassThroughSupport ( SlangSession * session,
SlangPassThrough passThrough )
参见
slang::IGlobalSession::checkPassThroughSupport

◆ spSessionGetSharedLibraryLoader()

SLANG_API ISlangSharedLibraryLoader * spSessionGetSharedLibraryLoader ( SlangSession * session)
参见
slang::IGlobalSession::getSharedLibraryLoader

◆ spSessionSetSharedLibraryLoader()

SLANG_API void spSessionSetSharedLibraryLoader ( SlangSession * session,
ISlangSharedLibraryLoader * loader )
参见
slang::IGlobalSession::setSharedLibraryLoader

◆ spSetCodeGenTarget()

SLANG_API void spSetCodeGenTarget ( SlangCompileRequest * request,
SlangCompileTarget target )
参见
slang::ICompileRequest::setCodeGenTarget

◆ spSetCompileFlags()

SLANG_API void spSetCompileFlags ( SlangCompileRequest * request,
SlangCompileFlags flags )
参见
slang::ICompileRequest::setCompileFlags

◆ spSetDebugInfoFormat()

SLANG_API void spSetDebugInfoFormat ( SlangCompileRequest * request,
SlangDebugInfoFormat format )
参见
slang::ICompileRequest::setDebugInfoFormat

◆ spSetDebugInfoLevel()

SLANG_API void spSetDebugInfoLevel ( SlangCompileRequest * request,
SlangDebugInfoLevel level )
参见
slang::ICompileRequest::setDebugInfoLevel

◆ spSetDefaultModuleName()

SLANG_API void spSetDefaultModuleName ( SlangCompileRequest * request,
const char * defaultModuleName )
参见
slang::ICompileRequest::setDefaultModuleName

◆ spSetDiagnosticCallback()

SLANG_API void spSetDiagnosticCallback ( SlangCompileRequest * request,
SlangDiagnosticCallback callback,
void const * userData )
参见
slang::ICompileRequest::setDiagnosticCallback

◆ spSetDiagnosticFlags()

SLANG_API void spSetDiagnosticFlags ( SlangCompileRequest * request,
SlangDiagnosticFlags flags )
参见
slang::ICompileRequest::setDiagnosticFlags

◆ spSetDumpIntermediatePrefix()

SLANG_API void spSetDumpIntermediatePrefix ( SlangCompileRequest * request,
const char * prefix )
参见
slang::ICompileRequest::setDumpIntermediatePrefix

◆ spSetDumpIntermediates()

SLANG_API void spSetDumpIntermediates ( SlangCompileRequest * request,
int enable )
参见
slang::ICompileRequest::setDumpIntermediates

◆ spSetFileSystem()

SLANG_API void spSetFileSystem ( SlangCompileRequest * request,
ISlangFileSystem * fileSystem )
参见
slang::ICompileRequest::setFileSystem

◆ spSetGlobalGenericArgs()

SLANG_API SlangResult spSetGlobalGenericArgs ( SlangCompileRequest * request,
int genericArgCount,
char const ** genericArgs )
参见
slang::ICompileRequest::setGlobalGenericArgs

◆ spSetIgnoreCapabilityCheck()

SLANG_API void spSetIgnoreCapabilityCheck ( slang::ICompileRequest * request,
bool val )
参见
slang::ICompileRequest::setIgnoreCapabilityCheck

◆ spSetLineDirectiveMode()

SLANG_API void spSetLineDirectiveMode ( SlangCompileRequest * request,
SlangLineDirectiveMode mode )

DEPRECATED: use spSetTargetLineDirectiveMode instead.

参见
slang::ICompileRequest::setLineDirectiveMode

◆ spSetMatrixLayoutMode()

SLANG_API void spSetMatrixLayoutMode ( SlangCompileRequest * request,
SlangMatrixLayoutMode mode )
参见
slang::ICompileRequest::setMatrixLayoutMode

◆ spSetOptimizationLevel()

SLANG_API void spSetOptimizationLevel ( SlangCompileRequest * request,
SlangOptimizationLevel level )
参见
slang::ICompileRequest::setOptimizationLevel

◆ spSetOutputContainerFormat()

SLANG_API void spSetOutputContainerFormat ( SlangCompileRequest * request,
SlangContainerFormat format )
参见
slang::ICompileRequest::setOutputContainerFormat

◆ spSetPassThrough()

SLANG_API void spSetPassThrough ( SlangCompileRequest * request,
SlangPassThrough passThrough )
参见
slang::ICompileRequest::setPassThrough

◆ spSetTargetFlags()

SLANG_API void spSetTargetFlags ( SlangCompileRequest * request,
int targetIndex,
SlangTargetFlags flags )
参见
slang::ICompileRequest::setTargetFlags

◆ spSetTargetFloatingPointMode()

SLANG_API void spSetTargetFloatingPointMode ( SlangCompileRequest * request,
int targetIndex,
SlangFloatingPointMode mode )
参见
slang::ICompileRequest::setTargetFloatingPointMode

◆ spSetTargetForceGLSLScalarBufferLayout()

SLANG_API void spSetTargetForceGLSLScalarBufferLayout ( SlangCompileRequest * request,
int targetIndex,
bool forceScalarLayout )
参见
slang::ICompileRequest::setTargetLineDirectiveMode

◆ spSetTargetLineDirectiveMode()

SLANG_API void spSetTargetLineDirectiveMode ( SlangCompileRequest * request,
int targetIndex,
SlangLineDirectiveMode mode )
参见
slang::ICompileRequest::setTargetLineDirectiveMode

◆ spSetTargetMatrixLayoutMode()

SLANG_API void spSetTargetMatrixLayoutMode ( SlangCompileRequest * request,
int targetIndex,
SlangMatrixLayoutMode mode )

◆ spSetTargetProfile()

SLANG_API void spSetTargetProfile ( SlangCompileRequest * request,
int targetIndex,
SlangProfileID profile )
参见
slang::ICompileRequest::setTargetProfile

◆ spSetTargetUseMinimumSlangOptimization()

SLANG_API void spSetTargetUseMinimumSlangOptimization ( slang::ICompileRequest * request,
int targetIndex,
bool val )
参见
slang::ICompileRequest::setTargetUseMinimumSlangOptimization

◆ spSetTypeNameForEntryPointExistentialTypeParam()

SLANG_API SlangResult spSetTypeNameForEntryPointExistentialTypeParam ( SlangCompileRequest * request,
int entryPointIndex,
int slotIndex,
char const * typeName )
参见
slang::ICompileRequest::setTypeNameForEntryPointExistentialTypeParam

◆ spSetTypeNameForGlobalExistentialTypeParam()

SLANG_API SlangResult spSetTypeNameForGlobalExistentialTypeParam ( SlangCompileRequest * request,
int slotIndex,
char const * typeName )
参见
slang::ICompileRequest::setTypeNameForGlobalExistentialTypeParam

◆ spSetWriter()

SLANG_API void spSetWriter ( SlangCompileRequest * request,
SlangWriterChannel channel,
ISlangWriter * writer )
参见
slang::ICompileRequest::setWriter

◆ spTranslationUnit_addPreprocessorDefine()

SLANG_API void spTranslationUnit_addPreprocessorDefine ( SlangCompileRequest * request,
int translationUnitIndex,
const char * key,
const char * value )
参见
slang::ICompileRequest::addPreprocessorDefine