Documentation ¶
Index ¶
- Constants
- type CallbackDataFlags
- type CallbackFunction
- type DebugUtilsLabel
- type DebugUtilsMessengerCallbackData
- type DebugUtilsMessengerCreateInfo
- type DebugUtilsObjectNameInfo
- type DebugUtilsObjectTagInfo
- type Extension
- type MessageSeverities
- type MessageTypes
- type Messenger
- type VulkanExtension
- func (l *VulkanExtension) CmdBeginDebugUtilsLabel(commandBuffer core1_0.CommandBuffer, label DebugUtilsLabel) error
- func (l *VulkanExtension) CmdEndDebugUtilsLabel(buffer core1_0.CommandBuffer)
- func (l *VulkanExtension) CmdInsertDebugUtilsLabel(buffer core1_0.CommandBuffer, label DebugUtilsLabel) error
- func (l *VulkanExtension) CreateDebugUtilsMessenger(instance core1_0.Instance, allocation *driver.AllocationCallbacks, ...) (Messenger, common.VkResult, error)
- func (l *VulkanExtension) QueueBeginDebugUtilsLabel(queue core1_0.Queue, label DebugUtilsLabel) error
- func (l *VulkanExtension) QueueEndDebugUtilsLabel(queue core1_0.Queue)
- func (l *VulkanExtension) QueueInsertDebugUtilsLabel(queue core1_0.Queue, label DebugUtilsLabel) error
- func (l *VulkanExtension) SetDebugUtilsObjectName(device core1_0.Device, name DebugUtilsObjectNameInfo) (common.VkResult, error)
- func (l *VulkanExtension) SetDebugUtilsObjectTag(device core1_0.Device, tag DebugUtilsObjectTagInfo) (common.VkResult, error)
- func (l *VulkanExtension) SubmitDebugUtilsMessage(instance core1_0.Instance, severity MessageSeverities, types MessageTypes, ...) error
Constants ¶
View Source
const ( ExtensionName string = C.VK_EXT_DEBUG_UTILS_EXTENSION_NAME TypeGeneral MessageTypes = C.VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT TypeValidation MessageTypes = C.VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT TypePerformance MessageTypes = C.VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT SeverityVerbose MessageSeverities = C.VK_DEBUG_UTILS_MESSAGE_SEVERITY_VERBOSE_BIT_EXT SeverityInfo MessageSeverities = C.VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT SeverityWarning MessageSeverities = C.VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT SeverityError MessageSeverities = C.VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT ObjectTypeDebugUtilsMessenger core1_0.ObjectType = C.VK_OBJECT_TYPE_DEBUG_UTILS_MESSENGER_EXT )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackDataFlags ¶
type CallbackDataFlags int32
func (CallbackDataFlags) Register ¶
func (f CallbackDataFlags) Register(str string)
func (CallbackDataFlags) String ¶
func (f CallbackDataFlags) String() string
type CallbackFunction ¶
type CallbackFunction func(msgType MessageTypes, severity MessageSeverities, data *DebugUtilsMessengerCallbackData) bool
type DebugUtilsLabel ¶
type DebugUtilsLabel struct { LabelName string Color color.Color common.NextOptions }
func (DebugUtilsLabel) PopulateCPointer ¶
func (*DebugUtilsLabel) PopulateFromCPointer ¶
func (l *DebugUtilsLabel) PopulateFromCPointer(cDataPointer unsafe.Pointer)
type DebugUtilsMessengerCallbackData ¶
type DebugUtilsMessengerCallbackData struct { Flags CallbackDataFlags MessageIDName string MessageIDNumber int Message string QueueLabels []DebugUtilsLabel CmdBufLabels []DebugUtilsLabel Objects []DebugUtilsObjectNameInfo common.NextOptions }
func (DebugUtilsMessengerCallbackData) PopulateCPointer ¶
func (*DebugUtilsMessengerCallbackData) PopulateFromCPointer ¶
func (c *DebugUtilsMessengerCallbackData) PopulateFromCPointer(cPointer unsafe.Pointer) error
type DebugUtilsMessengerCreateInfo ¶
type DebugUtilsMessengerCreateInfo struct { Flags CallbackDataFlags MessageSeverity MessageSeverities MessageType MessageTypes UserCallback CallbackFunction common.NextOptions }
type DebugUtilsObjectNameInfo ¶
type DebugUtilsObjectNameInfo struct { ObjectName string ObjectHandle uintptr ObjectType core1_0.ObjectType common.NextOptions }
func (DebugUtilsObjectNameInfo) PopulateCPointer ¶
func (*DebugUtilsObjectNameInfo) PopulateFromCPointer ¶
func (i *DebugUtilsObjectNameInfo) PopulateFromCPointer(cDataPointer unsafe.Pointer)
type DebugUtilsObjectTagInfo ¶
type DebugUtilsObjectTagInfo struct { ObjectType core1_0.ObjectType ObjectHandle uintptr TagName uint64 Tag []byte common.NextOptions }
func (DebugUtilsObjectTagInfo) PopulateCPointer ¶
func (*DebugUtilsObjectTagInfo) PopulateFromCPointer ¶
func (t *DebugUtilsObjectTagInfo) PopulateFromCPointer(cPointer unsafe.Pointer)
type Extension ¶
type Extension interface { CreateDebugUtilsMessenger(instance core1_0.Instance, allocation *driver.AllocationCallbacks, o DebugUtilsMessengerCreateInfo) (Messenger, common.VkResult, error) CmdBeginDebugUtilsLabel(commandBuffer core1_0.CommandBuffer, label DebugUtilsLabel) error CmdEndDebugUtilsLabel(commandBuffer core1_0.CommandBuffer) CmdInsertDebugUtilsLabel(commandBuffer core1_0.CommandBuffer, label DebugUtilsLabel) error QueueBeginDebugUtilsLabel(queue core1_0.Queue, label DebugUtilsLabel) error QueueEndDebugUtilsLabel(queue core1_0.Queue) QueueInsertDebugUtilsLabel(queue core1_0.Queue, label DebugUtilsLabel) error SetDebugUtilsObjectName(instance core1_0.Device, name DebugUtilsObjectNameInfo) (common.VkResult, error) SetDebugUtilsObjectTag(instance core1_0.Device, tag DebugUtilsObjectTagInfo) (common.VkResult, error) SubmitDebugUtilsMessage(instance core1_0.Instance, severity MessageSeverities, types MessageTypes, data DebugUtilsMessengerCallbackData) error }
type MessageSeverities ¶
type MessageSeverities int32
func (MessageSeverities) Register ¶
func (f MessageSeverities) Register(str string)
func (MessageSeverities) String ¶
func (f MessageSeverities) String() string
type MessageTypes ¶
type MessageTypes int32
func (MessageTypes) Register ¶
func (f MessageTypes) Register(str string)
func (MessageTypes) String ¶
func (f MessageTypes) String() string
type Messenger ¶
type Messenger interface { Destroy(callbacks *driver.AllocationCallbacks) Handle() ext_driver.VkDebugUtilsMessengerEXT }
type VulkanExtension ¶
type VulkanExtension struct {
// contains filtered or unexported fields
}
func CreateExtensionFromDriver ¶
func CreateExtensionFromDriver(driver ext_driver.Driver) *VulkanExtension
func CreateExtensionFromInstance ¶
func CreateExtensionFromInstance(instance core1_0.Instance) *VulkanExtension
func (*VulkanExtension) CmdBeginDebugUtilsLabel ¶
func (l *VulkanExtension) CmdBeginDebugUtilsLabel(commandBuffer core1_0.CommandBuffer, label DebugUtilsLabel) error
func (*VulkanExtension) CmdEndDebugUtilsLabel ¶
func (l *VulkanExtension) CmdEndDebugUtilsLabel(buffer core1_0.CommandBuffer)
func (*VulkanExtension) CmdInsertDebugUtilsLabel ¶
func (l *VulkanExtension) CmdInsertDebugUtilsLabel(buffer core1_0.CommandBuffer, label DebugUtilsLabel) error
func (*VulkanExtension) CreateDebugUtilsMessenger ¶
func (l *VulkanExtension) CreateDebugUtilsMessenger(instance core1_0.Instance, allocation *driver.AllocationCallbacks, o DebugUtilsMessengerCreateInfo) (Messenger, common.VkResult, error)
func (*VulkanExtension) QueueBeginDebugUtilsLabel ¶
func (l *VulkanExtension) QueueBeginDebugUtilsLabel(queue core1_0.Queue, label DebugUtilsLabel) error
func (*VulkanExtension) QueueEndDebugUtilsLabel ¶
func (l *VulkanExtension) QueueEndDebugUtilsLabel(queue core1_0.Queue)
func (*VulkanExtension) QueueInsertDebugUtilsLabel ¶
func (l *VulkanExtension) QueueInsertDebugUtilsLabel(queue core1_0.Queue, label DebugUtilsLabel) error
func (*VulkanExtension) SetDebugUtilsObjectName ¶
func (l *VulkanExtension) SetDebugUtilsObjectName(device core1_0.Device, name DebugUtilsObjectNameInfo) (common.VkResult, error)
func (*VulkanExtension) SetDebugUtilsObjectTag ¶
func (l *VulkanExtension) SetDebugUtilsObjectTag(device core1_0.Device, tag DebugUtilsObjectTagInfo) (common.VkResult, error)
func (*VulkanExtension) SubmitDebugUtilsMessage ¶
func (l *VulkanExtension) SubmitDebugUtilsMessage(instance core1_0.Instance, severity MessageSeverities, types MessageTypes, data DebugUtilsMessengerCallbackData) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.