[−][src]Crate slang_sys
Structs
ISlangBlob | A "blob" of binary data. |
ISlangFileSystem | A (real or virtual) file system. |
ISlangFileSystemExt | An extended file system abstraction. |
ISlangSharedLibrary | An interface that can be used to encapsulate access to a shared library. An implementaion does not have to implement the library as a shared library. |
ISlangSharedLibraryLoader | |
ISlangUnknown | Base interface for components exchanged through the API. |
ISlangUnknown__bindgen_vtable | |
ISlangWriter | A stream typically of text, used for outputting diagnostic as well as other information. |
SlangCompileRequest | |
SlangLinkage | |
SlangModule | |
SlangReflection | |
SlangReflectionEntryPoint | |
SlangReflectionModifier | |
SlangReflectionType | |
SlangReflectionTypeLayout | |
SlangReflectionTypeParameter | |
SlangReflectionUserAttribute | |
SlangReflectionVariable | |
SlangReflectionVariableLayout | |
SlangSession | |
SlangUUID | A "Universally Unique Identifier" (UUID) |
_GUID |
Constants
Functions
spAddBuiltins⚠ | @brief Add new builtin declarations to be used in subsequent compiles. |
spAddCodeGenTarget⚠ | @brief Add a code-generation target to be used. |
spAddEntryPoint⚠ | Add an entry point in a particular translation unit |
spAddEntryPointEx⚠ | Add an entry point in a particular translation unit, with additional arguments that specify the concrete type names for entry-point generic type parameters. |
spAddPreprocessorDefine⚠ | @brief Add a macro definition to be used during preprocessing. @param key The name of the macro to define. @param value The value of the macro to define. |
spAddSearchPath⚠ | @brief Add a path to use when searching for referenced files.
This will be used for both |
spAddTranslationUnit⚠ | Add a distinct translation unit to the compilation request |
spAddTranslationUnitSourceBlob⚠ | Add a blob of source code to the given translation unit. |
spAddTranslationUnitSourceFile⚠ | Add a source file to the given translation unit. |
spAddTranslationUnitSourceString⚠ | Add a source string to the given translation unit. |
spAddTranslationUnitSourceStringSpan⚠ | Add a source string to the given translation unit. |
spCompile⚠ | Execute the compilation request. |
spCreateCompileRequest⚠ | @brief Create a compile request. |
spCreateLinkage⚠ | |
spCreateSession⚠ | @brief Initialize an instance of the Slang library. |
spDestroyCompileRequest⚠ | @brief Destroy a compile request. |
spDestroyLinkage⚠ | |
spDestroySession⚠ | @brief Clean up after an instance of the Slang library. |
spFindProfile⚠ | Look up a compilation profile by name. |
spGetCompileRequestCode⚠ | Get the output bytecode associated with an entire compile request. |
spGetDependencyFileCount⚠ | Get the number of files that this compilation depended on. |
spGetDependencyFilePath⚠ | Get the path to a file this compilation depended on. |
spGetDiagnosticOutput⚠ | Get any diagnostic messages reported by the compiler. |
spGetDiagnosticOutputBlob⚠ | Get diagnostic messages reported by the compiler. |
spGetEntryPointCode⚠ | Get the output bytecode associated with a specific entry point. |
spGetEntryPointCodeBlob⚠ | Get the output code associated with a specific entry point. |
spGetEntryPointSource⚠ | Get the output source code associated with a specific entry point. |
spGetReflection⚠ | |
spGetTranslationUnitCount⚠ | Get the number of translation units associated with the compilation request |
spGetTranslationUnitSource⚠ | |
spGetWriter⚠ | |
spLoadModule⚠ | |
spProcessCommandLineArguments⚠ | @brief Set options using arguments as if specified via command line. @return Returns SlangResult. On success SLANG_SUCCEEDED(result) is true. |
spReflectionEntryPoint_getComputeThreadGroupSize⚠ | |
spReflectionEntryPoint_getName⚠ | |
spReflectionEntryPoint_getParameterByIndex⚠ | |
spReflectionEntryPoint_getParameterCount⚠ | |
spReflectionEntryPoint_getStage⚠ | |
spReflectionEntryPoint_usesAnySampleRateInput⚠ | |
spReflectionParameter_GetBindingIndex⚠ | |
spReflectionParameter_GetBindingSpace⚠ | |
spReflectionTypeLayout_GetCategoryByIndex⚠ | |
spReflectionTypeLayout_GetCategoryCount⚠ | |
spReflectionTypeLayout_GetElementStride⚠ | |
spReflectionTypeLayout_GetElementTypeLayout⚠ | |
spReflectionTypeLayout_GetElementVarLayout⚠ | |
spReflectionTypeLayout_GetFieldByIndex⚠ | |
spReflectionTypeLayout_GetMatrixLayoutMode⚠ | |
spReflectionTypeLayout_GetParameterCategory⚠ | |
spReflectionTypeLayout_GetSize⚠ | |
spReflectionTypeLayout_GetType⚠ | |
spReflectionTypeLayout_getGenericParamIndex⚠ | |
spReflectionTypeParameter_GetConstraintByIndex⚠ | |
spReflectionTypeParameter_GetConstraintCount⚠ | |
spReflectionTypeParameter_GetIndex⚠ | |
spReflectionTypeParameter_GetName⚠ | |
spReflectionType_FindUserAttributeByName⚠ | |
spReflectionType_GetColumnCount⚠ | |
spReflectionType_GetElementCount⚠ | Returns the number of elements in the given type. |
spReflectionType_GetElementType⚠ | |
spReflectionType_GetFieldByIndex⚠ | |
spReflectionType_GetFieldCount⚠ | |
spReflectionType_GetKind⚠ | |
spReflectionType_GetName⚠ | |
spReflectionType_GetResourceAccess⚠ | |
spReflectionType_GetResourceResultType⚠ | |
spReflectionType_GetResourceShape⚠ | |
spReflectionType_GetRowCount⚠ | |
spReflectionType_GetScalarType⚠ | |
spReflectionType_GetUserAttribute⚠ | |
spReflectionType_GetUserAttributeCount⚠ | |
spReflectionUserAttribute_GetArgumentCount⚠ | |
spReflectionUserAttribute_GetArgumentType⚠ | |
spReflectionUserAttribute_GetArgumentValueFloat⚠ | |
spReflectionUserAttribute_GetArgumentValueInt⚠ | |
spReflectionUserAttribute_GetArgumentValueString⚠ | 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 |
spReflectionUserAttribute_GetName⚠ | |
spReflectionVariableLayout_GetOffset⚠ | |
spReflectionVariableLayout_GetSemanticIndex⚠ | |
spReflectionVariableLayout_GetSemanticName⚠ | |
spReflectionVariableLayout_GetSpace⚠ | |
spReflectionVariableLayout_GetTypeLayout⚠ | |
spReflectionVariableLayout_GetVariable⚠ | |
spReflectionVariableLayout_getStage⚠ | Get the stage that a variable belongs to (if any). |
spReflectionVariable_FindModifier⚠ | |
spReflectionVariable_FindUserAttributeByName⚠ | |
spReflectionVariable_GetName⚠ | |
spReflectionVariable_GetType⚠ | |
spReflectionVariable_GetUserAttribute⚠ | |
spReflectionVariable_GetUserAttributeCount⚠ | |
spReflection_FindTypeByName⚠ | |
spReflection_FindTypeParameter⚠ | |
spReflection_GetParameterByIndex⚠ | |
spReflection_GetParameterCount⚠ | |
spReflection_GetTypeLayout⚠ | |
spReflection_GetTypeParameterByIndex⚠ | |
spReflection_GetTypeParameterCount⚠ | |
spReflection_findEntryPointByName⚠ | |
spReflection_getEntryPointByIndex⚠ | |
spReflection_getEntryPointCount⚠ | |
spReflection_getGlobalConstantBufferBinding⚠ | |
spReflection_getGlobalConstantBufferSize⚠ | |
spSessionCheckCompileTargetSupport⚠ | @brief Returns SLANG_OK if a the compilation target is supported for this session @param session Session @param target The compilation target to test @return SLANG_OK if the target is available SLANG_E_NOT_IMPLEMENTED if not implemented in this build SLANG_E_NOT_FOUND if other resources (such as shared libraries) required to make target work could not be found SLANG_FAIL other kinds of failures |
spSessionCheckPassThroughSupport⚠ | @brief Returns SLANG_OK if a the pass through support is supported for this session @param session Session @param target The compilation target to test @return SLANG_OK if the target is available SLANG_E_NOT_IMPLEMENTED if not implemented in this build SLANG_E_NOT_FOUND if other resources (such as shared libraries) required to make target work could not be found SLANG_FAIL other kinds of failures |
spSessionGetSharedLibraryLoader⚠ | @brief Gets the currently set shared library loader @param session Session to get the loader from @return Gets the currently set loader. If returns nullptr, it's the default loader |
spSessionSetSharedLibraryLoader⚠ | @brief Set the session shared library loader. If this changes the loader, it may cause shared libraries to be unloaded @param session Session to set the loader on @param loader The loader to set. Setting nullptr sets the default loader. |
spSetCodeGenTarget⚠ | @brief Sets the target for code generation. @param request The compilation context. @param target The code generation target. Possible values are: |
spSetCompileFlags⚠ | @brief Set flags to be used for compilation. |
spSetDebugInfoLevel⚠ | @brief Set the level of debug information to produce. |
spSetDiagnosticCallback⚠ | |
spSetDumpIntermediates⚠ | @brief Set whether to dump intermediate results (for debugging) or not. |
spSetFileSystem⚠ | Set the filesystem hook to use for a compile request |
spSetGlobalGenericArgs⚠ | Specify the arguments to use for global generic parameters. |
spSetLineDirectiveMode⚠ | @brief Set whether (and how) |
spSetMatrixLayoutMode⚠ | |
spSetOptimizationLevel⚠ | @brief Set the level of optimization to perform. |
spSetOutputContainerFormat⚠ | @brief Set the container format to be used for binary output. |
spSetPassThrough⚠ | |
spSetTargetFlags⚠ | |
spSetTargetFloatingPointMode⚠ | @brief Set the floating point mode (e.g., precise or fast) to use a target. |
spSetTargetMatrixLayoutMode⚠ | |
spSetTargetProfile⚠ | |
spSetTypeNameForEntryPointExistentialTypeParam⚠ | Specify the concrete type to be used for an entry-point "existential slot." |
spSetTypeNameForGlobalExistentialTypeParam⚠ | Specify the concrete type to be used for a global "existential slot." |
spSetWriter⚠ | |
spTranslationUnit_addPreprocessorDefine⚠ | Add a preprocessor definition that is scoped to a single translation unit. |