| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
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
Arguments
| :: DescriptorSet | |
| -> Word32 | Binding. |
| -> DescriptorType |
|
| -> Buffer | |
| -> SomeStruct WriteDescriptorSet |
Arguments
| :: DescriptorSet | |
| -> Word32 | Binding. |
| -> DescriptorType |
|
| -> 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).