vulkan-utils-0.5.11.0: Utils for the vulkan package
Safe HaskellNone
LanguageHaskell2010

Vulkan.Utils.Descriptors

Description

Single-resource descriptor writes for updateDescriptorSets. bufferWrite covers the whole-buffer case (a uniform or storage buffer bound in its entirety); imageWrite is its samplerless image sibling (a storage image in GENERAL layout, a sampled image in SHADER_READ_ONLY_OPTIMAL, …); combinedImageSamplerWrite binds an image together with a sampler. Bindings needing partial buffer ranges or descriptor arrays are out of scope — assemble those WriteDescriptorSets directly.

Synopsis
  • bufferWrite :: DescriptorSet -> Word32 -> DescriptorType -> Buffer -> SomeStruct WriteDescriptorSet
  • imageWrite :: DescriptorSet -> Word32 -> DescriptorType -> ImageLayout -> ImageView -> SomeStruct WriteDescriptorSet
  • combinedImageSamplerWrite :: DescriptorSet -> Word32 -> Sampler -> ImageView -> ImageLayout -> SomeStruct WriteDescriptorSet

Documentation

bufferWrite Source #

Arguments

:: DescriptorSet 
-> Word32

Binding.

-> DescriptorType

DESCRIPTOR_TYPE_UNIFORM_BUFFER, DESCRIPTOR_TYPE_STORAGE_BUFFER, …

-> Buffer 
-> SomeStruct WriteDescriptorSet 

imageWrite Source #

Arguments

:: DescriptorSet 
-> Word32

Binding.

-> DescriptorType

DESCRIPTOR_TYPE_STORAGE_IMAGE, DESCRIPTOR_TYPE_SAMPLED_IMAGE, …

-> ImageLayout

The layout the image will be in when the set is bound.

-> ImageView 
-> SomeStruct WriteDescriptorSet 

combinedImageSamplerWrite Source #

Arguments

:: DescriptorSet 
-> Word32

Binding.

-> Sampler 
-> ImageView 
-> ImageLayout

The layout the image will be in when the set is bound.

-> SomeStruct WriteDescriptorSet 

A combined image+sampler descriptor write (DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER).