vulkan-2.0.0.1: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Extensions.VK_EXT_vertex_attribute_divisor

Synopsis

Documentation

data VkVertexInputBindingDivisorDescriptionEXT Source #

VkVertexInputBindingDivisorDescriptionEXT - Structure specifying a divisor used in instanced rendering

Description

If this structure is not used to define a divisor value for an attribute then the divisor has a logical default value of 1.

Valid Usage

  • binding must be less than VkPhysicalDeviceLimits::maxVertexInputBindings
  • divisor must be a value between 0 and VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT::maxVertexAttribDivisor, inclusive.
  • VkVertexInputBindingDescription::inputRate must be of type VK_VERTEX_INPUT_RATE_INSTANCE for this binding.

See Also

VkPipelineVertexInputDivisorStateCreateInfoEXT

Constructors

VkVertexInputBindingDivisorDescriptionEXT 

Fields

  • vkBinding :: Word32

    binding is the binding number for which the divisor is specified.

  • vkDivisor :: Word32

    divisor is the the number of successive instances that will use the same value of the vertex attribute when instanced rendering is enabled. For example, if the divisor is N, the same vertex attribute will applied to N successive instances before moving on to the next vertex attribute. If a value of 0 is used for the divisor, then the first vertex attribute will be applied to all instances. The maximum value of divisor is implementation dependent and can be queried using VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT::maxVertexAttribDivisor.

data VkPipelineVertexInputDivisorStateCreateInfoEXT Source #

VkPipelineVertexInputDivisorStateCreateInfoEXT - Structure specifying vertex attributes assignment during instanced rendering

Valid Usage (Implicit)

  • sType must be VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_DIVISOR_STATE_CREATE_INFO_EXT
  • pVertexBindingDivisors must be a valid pointer to an array of vertexBindingDivisorCount VkVertexInputBindingDivisorDescriptionEXT structures
  • vertexBindingDivisorCount must be greater than 0

See Also

VkStructureType, VkVertexInputBindingDivisorDescriptionEXT

Constructors

VkPipelineVertexInputDivisorStateCreateInfoEXT 

Fields

Instances
Eq VkPipelineVertexInputDivisorStateCreateInfoEXT Source # 
Instance details
Show VkPipelineVertexInputDivisorStateCreateInfoEXT Source # 
Instance details
Storable VkPipelineVertexInputDivisorStateCreateInfoEXT Source # 
Instance details

data VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT Source #

VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT - Structure describing max value of vertex attribute divisor that can be supported by an implementation

Members

The members of the VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT structure describe the following implementation-dependent limits:

Description

  • maxVertexAttribDivisor is the maximum value of the number of instances that will repeat the value of vertex attribute data when instanced rendering is enabled.

Valid Usage (Implicit)

  • sType must be VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_VERTEX_ATTRIBUTE_DIVISOR_PROPERTIES_EXT

See Also

VkStructureType

Instances
Eq VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT Source # 
Instance details
Show VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT Source # 
Instance details
Storable VkPhysicalDeviceVertexAttributeDivisorPropertiesEXT Source # 
Instance details