Class VkShaderModuleCreateInfo

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

    public class VkShaderModuleCreateInfo
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource
    Structure specifying parameters of a newly created shader module.
    Valid Usage
    • codeSize must be greater than 0
    • If pCode is a pointer 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 is a pointer 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 is a pointer 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 in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied
    • pCode must not declare any SPIR-V extension that is not supported by the API, as described by the Extension section of the SPIR-V Environment appendix
    • If pCode declares any of the SPIR-V extensions listed in the SPIR-V Environment appendix, one of the corresponding requirements must be satisfied
    Valid Usage (Implicit)
    See Also

    CreateShaderModule

    Layout

    
     struct VkShaderModuleCreateInfo {
         VkStructureType sType();
         void const * pNext();
         VkShaderModuleCreateFlags flags();
         size_t codeSize();
         uint32_t const * pCode();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, FLAGS, CODESIZE, PCODE

        The struct member offsets.
    • Constructor Detail

      • VkShaderModuleCreateInfo

        public VkShaderModuleCreateInfo​(java.nio.ByteBuffer container)
        Creates a VkShaderModuleCreateInfo instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.