Class VkShaderModuleCreateInfo

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class VkShaderModuleCreateInfo
    extends Struct
    Khronos Reference Page
    Vulkan Specification

    Contains information about how a shader module should be created.

    Valid Usage
    • sType must be STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO
    • pNext must be NULL
    • flags must be 0
    • pCode must be a pointer to an array of codeSize / 4 uint32_t values
    • codeSize must be greater than 0
    • codeSize must be a multiple of 4
    • pCode must point to valid SPIR-V code, formatted and packed as described by https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.html[the SPIR-V Specification v1.0]
    • pCode must adhere to the validation rules described by the Validation Rules within a Module section of the SPIR-V Environment appendix
    • pCode must declare the Shader capability
    • pCode must not declare any capability that is not supported by the API, as described by the Capabilities section of the SPIR-V Environment appendix
    • If pCode declares any of the capabilities that are listed as not required by the implementation, the relevant feature must be enabled, as listed in the SPIR-V Environment appendix

    Member documentation

    • sType – the type of this structure. Must be: STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO
    • pNext – reserved for use by extensions
    • flags – reserved for future use
    • codeSize – the size, in bytes, of the code pointed to by pCode
    • pCode – points to code that is used to create the shader module

    Layout

    struct VkShaderModuleCreateInfo {
        VkStructureType sType;
        const void * pNext;
        VkShaderModuleCreateFlags flags;
        size_t codeSize;
        const uint32_t * pCode;
    }