Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ExtensionName is VK_KHR_draw_indirect_count ExtensionName string = C.VK_KHR_DRAW_INDIRECT_COUNT_EXTENSION_NAME )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extension ¶
type Extension interface {
// CmdDrawIndexedIndirectCount draws with indirect parameters, indexed vertices, and draw count
//
// commandBuffer - The CommandBuffer to queue the draw to
//
// buffer - The Buffer containing draw parameters
//
// offset - The byte offset into buffer where parameters begin
//
// countBuffer - The Buffer containing the draw count
//
// countBufferOffset - The byte offset into countBuffer where the draw count begins
//
// maxDrawCount - Specifies the maximum number of draws that will be executed.
//
// stride - The byte stride between successive sets of draw parameters
//
// https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawIndexedIndirectCount.html
CmdDrawIndexedIndirectCount(commandBuffer core1_0.CommandBuffer, buffer core1_0.Buffer, offset uint64, countBuffer core1_0.Buffer, countBufferOffset uint64, maxDrawCount, stride int)
// CmdDrawIndirectCount draws primitives with indirect parameters and draw count
//
// commandBuffer - The CommandBuffer to queue the draw to
//
// buffer - The Buffer containing draw parameters
//
// offset - The byte offset into buffer where parameters begin
//
// countBuffer - The Buffer containing the draw count
//
// countBufferOffset - The byte offset into countBuffer where the draw count begins
//
// maxDrawCount - Specifies the maximum number of draws that will be executed.
//
// stride - The byte stride between successive sets of draw parameters
//
// https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkCmdDrawIndirectCount.html
CmdDrawIndirectCount(commandBuffer core1_0.CommandBuffer, buffer core1_0.Buffer, offset uint64, countBuffer core1_0.Buffer, countBufferOffset uint64, maxDrawCount, stride int)
}
Extension contains all the commands for the khr_draw_indirect_count extension
type VulkanExtension ¶
type VulkanExtension struct {
// contains filtered or unexported fields
}
VulkanExtension is an implementation of the Extension interface that actually communicates with Vulkan. This is the default implementation. See the interface for more documentation.
func CreateExtensionFromDevice ¶
func CreateExtensionFromDevice(device core1_0.Device, instance core1_0.Instance) *VulkanExtension
CreateExtensionFromDevice produces an Extension object from a Device with khr_draw_indirect_count loaded
func CreateExtensionFromDriver ¶
func CreateExtensionFromDriver(driver khr_draw_indirect_count_driver.Driver) *VulkanExtension
CreateExtensionFromDriver generates an Extension from a driver.Driver object- this is usually used in tests to build an Extension from mock drivers
func (*VulkanExtension) CmdDrawIndexedIndirectCount ¶
func (e *VulkanExtension) CmdDrawIndexedIndirectCount(commandBuffer core1_0.CommandBuffer, buffer core1_0.Buffer, offset uint64, countBuffer core1_0.Buffer, countBufferOffset uint64, maxDrawCount, stride int)
func (*VulkanExtension) CmdDrawIndirectCount ¶
func (e *VulkanExtension) CmdDrawIndirectCount(commandBuffer core1_0.CommandBuffer, buffer core1_0.Buffer, offset uint64, countBuffer core1_0.Buffer, countBufferOffset uint64, maxDrawCount, stride int)
Click to show internal directories.
Click to hide internal directories.