Documentation
¶
Overview ¶
Package mock_swapchain is a generated GoMock package.
Package mock_swapchain is a generated GoMock package.
Package mock_swapchain is a generated GoMock package.
Package mock_swapchain is a generated GoMock package.
Index ¶
- func NewFakeSwapchain() khr_swapchain_driver.VkSwapchainKHR
- type MockDriver
- func (m *MockDriver) EXPECT() *MockDriverMockRecorder
- func (m *MockDriver) VkAcquireNextImage2KHR(device driver.VkDevice, ...) (common.VkResult, error)
- func (m *MockDriver) VkAcquireNextImageKHR(device driver.VkDevice, swapchain khr_swapchain_driver.VkSwapchainKHR, ...) (common.VkResult, error)
- func (m *MockDriver) VkCreateSwapchainKHR(device driver.VkDevice, ...) (common.VkResult, error)
- func (m *MockDriver) VkDestroySwapchainKHR(device driver.VkDevice, swapchain khr_swapchain_driver.VkSwapchainKHR, ...)
- func (m *MockDriver) VkGetDeviceGroupPresentCapabilitiesKHR(device driver.VkDevice, ...) (common.VkResult, error)
- func (m *MockDriver) VkGetDeviceGroupSurfacePresentModesKHR(device driver.VkDevice, surface khr_surface_driver.VkSurfaceKHR, ...) (common.VkResult, error)
- func (m *MockDriver) VkGetPhysicalDevicePresentRectanglesKHR(physicalDevice driver.VkPhysicalDevice, ...) (common.VkResult, error)
- func (m *MockDriver) VkGetSwapchainImagesKHR(device driver.VkDevice, swapchain khr_swapchain_driver.VkSwapchainKHR, ...) (common.VkResult, error)
- func (m *MockDriver) VkQueuePresentKHR(queue driver.VkQueue, pPresentInfo *khr_swapchain_driver.VkPresentInfoKHR) (common.VkResult, error)
- type MockDriverMockRecorder
- func (mr *MockDriverMockRecorder) VkAcquireNextImage2KHR(device, pAcquireInfo, pImageIndex interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkAcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkCreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkDestroySwapchainKHR(device, swapchain, pAllocator interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkGetDeviceGroupPresentCapabilitiesKHR(device, pDeviceGroupPresentCapabilities interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkGetDeviceGroupSurfacePresentModesKHR(device, surface, pModes interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkGetPhysicalDevicePresentRectanglesKHR(physicalDevice, surface, pRectCount, pRects interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkGetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages interface{}) *gomock.Call
- func (mr *MockDriverMockRecorder) VkQueuePresentKHR(queue, pPresentInfo interface{}) *gomock.Call
- type MockExtension
- func (m *MockExtension) APIVersion() common.APIVersion
- func (m *MockExtension) CreateSwapchain(device core1_0.Device, allocation *driver.AllocationCallbacks, ...) (khr_swapchain.Swapchain, common.VkResult, error)
- func (m *MockExtension) Driver() khr_swapchain_driver.Driver
- func (m *MockExtension) EXPECT() *MockExtensionMockRecorder
- func (m *MockExtension) QueuePresent(queue core1_0.Queue, o khr_swapchain.PresentInfo) (common.VkResult, error)
- type MockExtension1_1
- func (m *MockExtension1_1) AcquireNextImage2(device core1_0.Device, o khr_swapchain1_1.AcquireNextImageInfo) (int, common.VkResult, error)
- func (m *MockExtension1_1) DeviceGroupPresentCapabilities(device core1_0.Device, ...) (common.VkResult, error)
- func (m *MockExtension1_1) DeviceGroupSurfacePresentModes(device core1_0.Device, surface khr_surface.Surface) (khr_swapchain1_1.DeviceGroupPresentModeFlags, common.VkResult, error)
- func (m *MockExtension1_1) EXPECT() *MockExtension1_1MockRecorder
- func (m *MockExtension1_1) PhysicalDevicePresentRectangles(physicalDevice core1_0.PhysicalDevice, surface khr_surface.Surface) ([]core1_0.Rect2D, common.VkResult, error)
- type MockExtension1_1MockRecorder
- func (mr *MockExtension1_1MockRecorder) AcquireNextImage(device, o interface{}) *gomock.Call
- func (mr *MockExtension1_1MockRecorder) DeviceGroupPresentCapabilities(device, outData interface{}) *gomock.Call
- func (mr *MockExtension1_1MockRecorder) DeviceGroupSurfacePresentModes(device, surface interface{}) *gomock.Call
- func (mr *MockExtension1_1MockRecorder) PhysicalDevicePresentRectangles(physicalDevice, surface interface{}) *gomock.Call
- type MockExtensionMockRecorder
- func (mr *MockExtensionMockRecorder) APIVersion() *gomock.Call
- func (mr *MockExtensionMockRecorder) CreateSwapchain(device, allocation, options interface{}) *gomock.Call
- func (mr *MockExtensionMockRecorder) Driver() *gomock.Call
- func (mr *MockExtensionMockRecorder) PresentToQueue(queue, o interface{}) *gomock.Call
- type MockSwapchain
- func (m *MockSwapchain) AcquireNextImage(timeout time.Duration, semaphore core1_0.Semaphore, fence core1_0.Fence) (int, common.VkResult, error)
- func (m *MockSwapchain) Destroy(callbacks *driver.AllocationCallbacks)
- func (m *MockSwapchain) EXPECT() *MockSwapchainMockRecorder
- func (m *MockSwapchain) Handle() khr_swapchain_driver.VkSwapchainKHR
- func (m *MockSwapchain) SwapchainImages() ([]core1_0.Image, common.VkResult, error)
- type MockSwapchainMockRecorder
- func (mr *MockSwapchainMockRecorder) AcquireNextImage(timeout, semaphore, fence interface{}) *gomock.Call
- func (mr *MockSwapchainMockRecorder) Destroy(callbacks interface{}) *gomock.Call
- func (mr *MockSwapchainMockRecorder) Handle() *gomock.Call
- func (mr *MockSwapchainMockRecorder) Images() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeSwapchain ¶
func NewFakeSwapchain() khr_swapchain_driver.VkSwapchainKHR
Types ¶
type MockDriver ¶
type MockDriver struct {
// contains filtered or unexported fields
}
MockDriver is a mock of Driver interface.
func NewMockDriver ¶
func NewMockDriver(ctrl *gomock.Controller) *MockDriver
NewMockDriver creates a new mock instance.
func (*MockDriver) EXPECT ¶
func (m *MockDriver) EXPECT() *MockDriverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDriver) VkAcquireNextImage2KHR ¶
func (m *MockDriver) VkAcquireNextImage2KHR(device driver.VkDevice, pAcquireInfo *khr_swapchain_driver.VkAcquireNextImageInfoKHR, pImageIndex *driver.Uint32) (common.VkResult, error)
VkAcquireNextImage2KHR mocks base method.
func (*MockDriver) VkAcquireNextImageKHR ¶
func (m *MockDriver) VkAcquireNextImageKHR(device driver.VkDevice, swapchain khr_swapchain_driver.VkSwapchainKHR, timeout driver.Uint64, semaphore driver.VkSemaphore, fence driver.VkFence, pImageIndex *driver.Uint32) (common.VkResult, error)
VkAcquireNextImageKHR mocks base method.
func (*MockDriver) VkCreateSwapchainKHR ¶
func (m *MockDriver) VkCreateSwapchainKHR(device driver.VkDevice, pCreateInfo *khr_swapchain_driver.VkSwapchainCreateInfoKHR, pAllocator *driver.VkAllocationCallbacks, pSwapchain *khr_swapchain_driver.VkSwapchainKHR) (common.VkResult, error)
VkCreateSwapchainKHR mocks base method.
func (*MockDriver) VkDestroySwapchainKHR ¶
func (m *MockDriver) VkDestroySwapchainKHR(device driver.VkDevice, swapchain khr_swapchain_driver.VkSwapchainKHR, pAllocator *driver.VkAllocationCallbacks)
VkDestroySwapchainKHR mocks base method.
func (*MockDriver) VkGetDeviceGroupPresentCapabilitiesKHR ¶
func (m *MockDriver) VkGetDeviceGroupPresentCapabilitiesKHR(device driver.VkDevice, pDeviceGroupPresentCapabilities *khr_swapchain_driver.VkDeviceGroupPresentCapabilitiesKHR) (common.VkResult, error)
VkGetDeviceGroupPresentCapabilitiesKHR mocks base method.
func (*MockDriver) VkGetDeviceGroupSurfacePresentModesKHR ¶
func (m *MockDriver) VkGetDeviceGroupSurfacePresentModesKHR(device driver.VkDevice, surface khr_surface_driver.VkSurfaceKHR, pModes *khr_swapchain_driver.VkDeviceGroupPresentModeFlagsKHR) (common.VkResult, error)
VkGetDeviceGroupSurfacePresentModesKHR mocks base method.
func (*MockDriver) VkGetPhysicalDevicePresentRectanglesKHR ¶
func (m *MockDriver) VkGetPhysicalDevicePresentRectanglesKHR(physicalDevice driver.VkPhysicalDevice, surface khr_surface_driver.VkSurfaceKHR, pRectCount *driver.Uint32, pRects *driver.VkRect2D) (common.VkResult, error)
VkGetPhysicalDevicePresentRectanglesKHR mocks base method.
func (*MockDriver) VkGetSwapchainImagesKHR ¶
func (m *MockDriver) VkGetSwapchainImagesKHR(device driver.VkDevice, swapchain khr_swapchain_driver.VkSwapchainKHR, pSwapchainImageCount *driver.Uint32, pSwapchainImages *driver.VkImage) (common.VkResult, error)
VkGetSwapchainImagesKHR mocks base method.
func (*MockDriver) VkQueuePresentKHR ¶
func (m *MockDriver) VkQueuePresentKHR(queue driver.VkQueue, pPresentInfo *khr_swapchain_driver.VkPresentInfoKHR) (common.VkResult, error)
VkQueuePresentKHR mocks base method.
type MockDriverMockRecorder ¶
type MockDriverMockRecorder struct {
// contains filtered or unexported fields
}
MockDriverMockRecorder is the mock recorder for MockDriver.
func (*MockDriverMockRecorder) VkAcquireNextImage2KHR ¶
func (mr *MockDriverMockRecorder) VkAcquireNextImage2KHR(device, pAcquireInfo, pImageIndex interface{}) *gomock.Call
VkAcquireNextImage2KHR indicates an expected call of VkAcquireNextImage2KHR.
func (*MockDriverMockRecorder) VkAcquireNextImageKHR ¶
func (mr *MockDriverMockRecorder) VkAcquireNextImageKHR(device, swapchain, timeout, semaphore, fence, pImageIndex interface{}) *gomock.Call
VkAcquireNextImageKHR indicates an expected call of VkAcquireNextImageKHR.
func (*MockDriverMockRecorder) VkCreateSwapchainKHR ¶
func (mr *MockDriverMockRecorder) VkCreateSwapchainKHR(device, pCreateInfo, pAllocator, pSwapchain interface{}) *gomock.Call
VkCreateSwapchainKHR indicates an expected call of VkCreateSwapchainKHR.
func (*MockDriverMockRecorder) VkDestroySwapchainKHR ¶
func (mr *MockDriverMockRecorder) VkDestroySwapchainKHR(device, swapchain, pAllocator interface{}) *gomock.Call
VkDestroySwapchainKHR indicates an expected call of VkDestroySwapchainKHR.
func (*MockDriverMockRecorder) VkGetDeviceGroupPresentCapabilitiesKHR ¶
func (mr *MockDriverMockRecorder) VkGetDeviceGroupPresentCapabilitiesKHR(device, pDeviceGroupPresentCapabilities interface{}) *gomock.Call
VkGetDeviceGroupPresentCapabilitiesKHR indicates an expected call of VkGetDeviceGroupPresentCapabilitiesKHR.
func (*MockDriverMockRecorder) VkGetDeviceGroupSurfacePresentModesKHR ¶
func (mr *MockDriverMockRecorder) VkGetDeviceGroupSurfacePresentModesKHR(device, surface, pModes interface{}) *gomock.Call
VkGetDeviceGroupSurfacePresentModesKHR indicates an expected call of VkGetDeviceGroupSurfacePresentModesKHR.
func (*MockDriverMockRecorder) VkGetPhysicalDevicePresentRectanglesKHR ¶
func (mr *MockDriverMockRecorder) VkGetPhysicalDevicePresentRectanglesKHR(physicalDevice, surface, pRectCount, pRects interface{}) *gomock.Call
VkGetPhysicalDevicePresentRectanglesKHR indicates an expected call of VkGetPhysicalDevicePresentRectanglesKHR.
func (*MockDriverMockRecorder) VkGetSwapchainImagesKHR ¶
func (mr *MockDriverMockRecorder) VkGetSwapchainImagesKHR(device, swapchain, pSwapchainImageCount, pSwapchainImages interface{}) *gomock.Call
VkGetSwapchainImagesKHR indicates an expected call of VkGetSwapchainImagesKHR.
func (*MockDriverMockRecorder) VkQueuePresentKHR ¶
func (mr *MockDriverMockRecorder) VkQueuePresentKHR(queue, pPresentInfo interface{}) *gomock.Call
VkQueuePresentKHR indicates an expected call of VkQueuePresentKHR.
type MockExtension ¶
type MockExtension struct {
// contains filtered or unexported fields
}
MockExtension is a mock of Extension interface.
func NewMockExtension ¶
func NewMockExtension(ctrl *gomock.Controller) *MockExtension
NewMockExtension creates a new mock instance.
func (*MockExtension) APIVersion ¶
func (m *MockExtension) APIVersion() common.APIVersion
APIVersion mocks base method.
func (*MockExtension) CreateSwapchain ¶
func (m *MockExtension) CreateSwapchain(device core1_0.Device, allocation *driver.AllocationCallbacks, options khr_swapchain.SwapchainCreateInfo) (khr_swapchain.Swapchain, common.VkResult, error)
CreateSwapchain mocks base method.
func (*MockExtension) Driver ¶
func (m *MockExtension) Driver() khr_swapchain_driver.Driver
Driver mocks base method.
func (*MockExtension) EXPECT ¶
func (m *MockExtension) EXPECT() *MockExtensionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExtension) QueuePresent ¶
func (m *MockExtension) QueuePresent(queue core1_0.Queue, o khr_swapchain.PresentInfo) (common.VkResult, error)
PresentToQueue mocks base method.
type MockExtension1_1 ¶
type MockExtension1_1 struct {
// contains filtered or unexported fields
}
MockExtension1_1 is a mock of Extension interface.
func NewMockExtension1_1 ¶
func NewMockExtension1_1(ctrl *gomock.Controller) *MockExtension1_1
NewMockExtension1_1 creates a new mock instance.
func (*MockExtension1_1) AcquireNextImage2 ¶
func (m *MockExtension1_1) AcquireNextImage2(device core1_0.Device, o khr_swapchain1_1.AcquireNextImageInfo) (int, common.VkResult, error)
AcquireNextImage mocks base method.
func (*MockExtension1_1) DeviceGroupPresentCapabilities ¶
func (m *MockExtension1_1) DeviceGroupPresentCapabilities(device core1_0.Device, outData *khr_swapchain1_1.DeviceGroupPresentCapabilities) (common.VkResult, error)
DeviceGroupPresentCapabilities mocks base method.
func (*MockExtension1_1) DeviceGroupSurfacePresentModes ¶
func (m *MockExtension1_1) DeviceGroupSurfacePresentModes(device core1_0.Device, surface khr_surface.Surface) (khr_swapchain1_1.DeviceGroupPresentModeFlags, common.VkResult, error)
DeviceGroupSurfacePresentModes mocks base method.
func (*MockExtension1_1) EXPECT ¶
func (m *MockExtension1_1) EXPECT() *MockExtension1_1MockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExtension1_1) PhysicalDevicePresentRectangles ¶
func (m *MockExtension1_1) PhysicalDevicePresentRectangles(physicalDevice core1_0.PhysicalDevice, surface khr_surface.Surface) ([]core1_0.Rect2D, common.VkResult, error)
PhysicalDevicePresentRectangles mocks base method.
type MockExtension1_1MockRecorder ¶
type MockExtension1_1MockRecorder struct {
// contains filtered or unexported fields
}
MockExtension1_1MockRecorder is the mock recorder for MockExtension1_1.
func (*MockExtension1_1MockRecorder) AcquireNextImage ¶
func (mr *MockExtension1_1MockRecorder) AcquireNextImage(device, o interface{}) *gomock.Call
AcquireNextImage indicates an expected call of AcquireNextImage.
func (*MockExtension1_1MockRecorder) DeviceGroupPresentCapabilities ¶
func (mr *MockExtension1_1MockRecorder) DeviceGroupPresentCapabilities(device, outData interface{}) *gomock.Call
DeviceGroupPresentCapabilities indicates an expected call of DeviceGroupPresentCapabilities.
func (*MockExtension1_1MockRecorder) DeviceGroupSurfacePresentModes ¶
func (mr *MockExtension1_1MockRecorder) DeviceGroupSurfacePresentModes(device, surface interface{}) *gomock.Call
DeviceGroupSurfacePresentModes indicates an expected call of DeviceGroupSurfacePresentModes.
func (*MockExtension1_1MockRecorder) PhysicalDevicePresentRectangles ¶
func (mr *MockExtension1_1MockRecorder) PhysicalDevicePresentRectangles(physicalDevice, surface interface{}) *gomock.Call
PhysicalDevicePresentRectangles indicates an expected call of PhysicalDevicePresentRectangles.
type MockExtensionMockRecorder ¶
type MockExtensionMockRecorder struct {
// contains filtered or unexported fields
}
MockExtensionMockRecorder is the mock recorder for MockExtension.
func (*MockExtensionMockRecorder) APIVersion ¶
func (mr *MockExtensionMockRecorder) APIVersion() *gomock.Call
APIVersion indicates an expected call of APIVersion.
func (*MockExtensionMockRecorder) CreateSwapchain ¶
func (mr *MockExtensionMockRecorder) CreateSwapchain(device, allocation, options interface{}) *gomock.Call
CreateSwapchain indicates an expected call of CreateSwapchain.
func (*MockExtensionMockRecorder) Driver ¶
func (mr *MockExtensionMockRecorder) Driver() *gomock.Call
Driver indicates an expected call of Driver.
func (*MockExtensionMockRecorder) PresentToQueue ¶
func (mr *MockExtensionMockRecorder) PresentToQueue(queue, o interface{}) *gomock.Call
PresentToQueue indicates an expected call of PresentToQueue.
type MockSwapchain ¶
type MockSwapchain struct {
// contains filtered or unexported fields
}
MockSwapchain is a mock of Swapchain interface.
func EasyMockSwapchain ¶
func EasyMockSwapchain(ctrl *gomock.Controller) *MockSwapchain
func NewMockSwapchain ¶
func NewMockSwapchain(ctrl *gomock.Controller) *MockSwapchain
NewMockSwapchain creates a new mock instance.
func (*MockSwapchain) AcquireNextImage ¶
func (m *MockSwapchain) AcquireNextImage(timeout time.Duration, semaphore core1_0.Semaphore, fence core1_0.Fence) (int, common.VkResult, error)
AcquireNextImage mocks base method.
func (*MockSwapchain) Destroy ¶
func (m *MockSwapchain) Destroy(callbacks *driver.AllocationCallbacks)
Destroy mocks base method.
func (*MockSwapchain) EXPECT ¶
func (m *MockSwapchain) EXPECT() *MockSwapchainMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSwapchain) Handle ¶
func (m *MockSwapchain) Handle() khr_swapchain_driver.VkSwapchainKHR
Handle mocks base method.
func (*MockSwapchain) SwapchainImages ¶
Images mocks base method.
type MockSwapchainMockRecorder ¶
type MockSwapchainMockRecorder struct {
// contains filtered or unexported fields
}
MockSwapchainMockRecorder is the mock recorder for MockSwapchain.
func (*MockSwapchainMockRecorder) AcquireNextImage ¶
func (mr *MockSwapchainMockRecorder) AcquireNextImage(timeout, semaphore, fence interface{}) *gomock.Call
AcquireNextImage indicates an expected call of AcquireNextImage.
func (*MockSwapchainMockRecorder) Destroy ¶
func (mr *MockSwapchainMockRecorder) Destroy(callbacks interface{}) *gomock.Call
Destroy indicates an expected call of Destroy.
func (*MockSwapchainMockRecorder) Handle ¶
func (mr *MockSwapchainMockRecorder) Handle() *gomock.Call
Handle indicates an expected call of Handle.
func (*MockSwapchainMockRecorder) Images ¶
func (mr *MockSwapchainMockRecorder) Images() *gomock.Call
Images indicates an expected call of Images.