Class VkShaderModuleCreateInfo

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

    public class VkShaderModuleCreateInfo
    extends Struct
    implements NativeResource
    Structure specifying parameters of a newly created shader module.
    Valid Usage
    • codeSize must be greater than 0
    • If pCode points to SPIR-V code, codeSize must be a multiple of 4
    • pCode must point to either valid SPIR-V code, formatted and packed as described by the Khronos SPIR-V Specification or valid GLSL code which must be written to the GL_KHR_vulkan_glsl extension specification
    • If pCode points to SPIR-V code, that code must adhere to the validation rules described by the Validation Rules within a Module section of the SPIR-V Environment appendix
    • If pCode points to GLSL code, it must be valid GLSL code written to the GL_KHR_vulkan_glsl GLSL extension specification
    • pCode must declare the Shader capability for SPIR-V code
    • 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 listed as optional: in the SPIR-V Environment appendix, the corresponding feature(s) must be enabled.
    Valid Usage (Implicit)
    See Also


    Member documentation

    • sType – the type of this structure.
    • pNextNULL or a pointer to an extension-specific structure.
    • 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


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