vulkan-3.0.0.0: Bindings to the Vulkan graphics API.

Safe HaskellNone
LanguageHaskell2010

Graphics.Vulkan.Core10.BufferView

Synopsis

Documentation

createBufferView :: Device -> BufferViewCreateInfo -> ("allocator" ::: Maybe AllocationCallbacks) -> IO BufferView Source #

vkCreateBufferView - Create a new buffer view object

Parameters

  • Device is the logical device that creates the buffer view.
  • pCreateInfo is a pointer to a BufferViewCreateInfo structure containing parameters to be used to create the buffer.
  • pAllocator controls host memory allocation as described in the Memory Allocation chapter.
  • pView is a pointer to a BufferView handle in which the resulting buffer view object is returned.

Valid Usage (Implicit)

Return Codes

Success
Failure

See Also

AllocationCallbacks, BufferView, BufferViewCreateInfo, Device

withBufferView :: Device -> BufferViewCreateInfo -> Maybe AllocationCallbacks -> (BufferView -> IO r) -> IO r Source #

A safe wrapper for createBufferView and destroyBufferView using bracket

The allocated value must not be returned from the provided computation

destroyBufferView :: Device -> BufferView -> ("allocator" ::: Maybe AllocationCallbacks) -> IO () Source #

vkDestroyBufferView - Destroy a buffer view object

Parameters

  • Device is the logical device that destroys the buffer view.

Valid Usage

  • All submitted commands that refer to BufferView must have completed execution

Valid Usage (Implicit)

Host Synchronization

  • Host access to BufferView must be externally synchronized

See Also

AllocationCallbacks, BufferView, Device

data BufferViewCreateInfo Source #

VkBufferViewCreateInfo - Structure specifying parameters of a newly created buffer view

Valid Usage

  • offset must be less than the size of Buffer

Valid Usage (Implicit)

See Also

Buffer, BufferViewCreateFlags, DeviceSize, Format, StructureType, createBufferView

Constructors

BufferViewCreateInfo 

Fields

Instances
Show BufferViewCreateInfo Source # 
Instance details

Defined in Graphics.Vulkan.Core10.BufferView

Storable BufferViewCreateInfo Source # 
Instance details

Defined in Graphics.Vulkan.Core10.BufferView

FromCStruct BufferViewCreateInfo Source # 
Instance details

Defined in Graphics.Vulkan.Core10.BufferView

ToCStruct BufferViewCreateInfo Source # 
Instance details

Defined in Graphics.Vulkan.Core10.BufferView

Zero BufferViewCreateInfo Source # 
Instance details

Defined in Graphics.Vulkan.Core10.BufferView