Class VkShaderCreateInfoEXT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkShaderCreateInfoEXT>
org.lwjgl.vulkan.VkShaderCreateInfoEXT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class VkShaderCreateInfoEXT extends org.lwjgl.system.Struct<VkShaderCreateInfoEXT> implements org.lwjgl.system.NativeResource
Structure specifying parameters of a newly created shader.
Valid Usage
Valid Usage (Implicit)
  • sType must be STRUCTURE_TYPE_SHADER_CREATE_INFO_EXT
  • Each pNext member of any structure (including this one) in the pNext chain must be either NULL or a pointer to a valid instance of VkPipelineShaderStageRequiredSubgroupSizeCreateInfo or VkValidationFeaturesEXT
  • The sType value of each struct in the pNext chain must be unique
  • flags must be a valid combination of VkShaderCreateFlagBitsEXT values
  • stage must be a valid VkShaderStageFlagBits value
  • nextStage must be a valid combination of VkShaderStageFlagBits values
  • codeType must be a valid VkShaderCodeTypeEXT value
  • pCode must be a valid pointer to an array of codeSize bytes
  • If pName is not NULL, pName must be a null-terminated UTF-8 string
  • If setLayoutCount is not 0, and pSetLayouts is not NULL, pSetLayouts must be a valid pointer to an array of setLayoutCount valid VkDescriptorSetLayout handles
  • If pushConstantRangeCount is not 0, and pPushConstantRanges is not NULL, pPushConstantRanges must be a valid pointer to an array of pushConstantRangeCount valid VkPushConstantRange structures
  • If pSpecializationInfo is not NULL, pSpecializationInfo must be a valid pointer to a valid VkSpecializationInfo structure
  • codeSize must be greater than 0
See Also

VkPushConstantRange, VkSpecializationInfo, CreateShadersEXT

Layout


 struct VkShaderCreateInfoEXT {
     VkStructureType sType();
     void const * pNext();
     VkShaderCreateFlagsEXT flags();
     VkShaderStageFlagBits stage();
     VkShaderStageFlags nextStage();
     VkShaderCodeTypeEXT codeType();
     size_t codeSize();
     void const * pCode();
     char const * pName();
     uint32_t setLayoutCount();
     VkDescriptorSetLayout const * pSetLayouts();
     uint32_t pushConstantRangeCount();
     VkPushConstantRange const * pPushConstantRanges();
     VkSpecializationInfo const * pSpecializationInfo();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • FLAGS

      public static final int FLAGS
      The struct member offsets.
    • STAGE

      public static final int STAGE
      The struct member offsets.
    • NEXTSTAGE

      public static final int NEXTSTAGE
      The struct member offsets.
    • CODETYPE

      public static final int CODETYPE
      The struct member offsets.
    • CODESIZE

      public static final int CODESIZE
      The struct member offsets.
    • PCODE

      public static final int PCODE
      The struct member offsets.
    • PNAME

      public static final int PNAME
      The struct member offsets.
    • SETLAYOUTCOUNT

      public static final int SETLAYOUTCOUNT
      The struct member offsets.
    • PSETLAYOUTS

      public static final int PSETLAYOUTS
      The struct member offsets.
    • PUSHCONSTANTRANGECOUNT

      public static final int PUSHCONSTANTRANGECOUNT
      The struct member offsets.
    • PPUSHCONSTANTRANGES

      public static final int PPUSHCONSTANTRANGES
      The struct member offsets.
    • PSPECIALIZATIONINFO

      public static final int PSPECIALIZATIONINFO
      The struct member offsets.
  • Constructor Details

    • VkShaderCreateInfoEXT

      public VkShaderCreateInfoEXT(ByteBuffer container)
      Creates a VkShaderCreateInfoEXT 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.

  • Method Details