createShaderModule :: (Extendss ShaderModuleCreateInfo a, PokeChain a, MonadIO io)=> Devicedeviceis the logical device that creates the shader module.-> ShaderModuleCreateInfo apCreateInfois a pointer to a ShaderModuleCreateInfo structure.->"allocator"
::: Maybe AllocationCallbackspAllocatorcontrols host memory allocation as described in the Memory Allocation chapter.-> io ShaderModule
vkCreateShaderModule - Creates a new shader module object
Description
Once a shader module has been created, any entry points it contains can be used in pipeline shader stages as described in Compute Pipelines and Graphics Pipelines .
If the maintenance5 feature is enabled, shader module creation can be omitted entirely. Instead, applications should provide the ShaderModuleCreateInfo structure directly in to pipeline creation by chaining it to PipelineShaderStageCreateInfo. This avoids the overhead of creating and managing an additional object.
Valid Usage
If
pCreateInfois notNULL,pCreateInfo->pNextmust beNULLor a pointer to a valid instance of
Valid Usage (Implicit)
devicemust be a valid Device handle
pCreateInfomust be a valid pointer to a valid ShaderModuleCreateInfo structureIf
pAllocatoris notNULL,pAllocatormust be a valid pointer to a valid AllocationCallbacks structurepShaderModulemust be a valid pointer to a ShaderModule handle
Return Codes
See Also
VK_VERSION_1_0, AllocationCallbacks, Device, ShaderModule, ShaderModuleCreateInfo