Struct vk_sys::DevicePointers
[−]
[src]
pub struct DevicePointers { // some fields omitted }
Methods
impl DevicePointers
[src]
fn load<F>(f: F) -> DevicePointers where F: FnMut(&CStr) -> *const c_void
unsafe fn DestroyDevice(&self, device: Device, pAllocator: *const AllocationCallbacks)
unsafe fn GetDeviceQueue(&self, device: Device, queueFamilyIndex: u32, queueIndex: u32, pQueue: *mut Queue)
unsafe fn QueueSubmit(&self, queue: Queue, submitCount: u32, pSubmits: *const SubmitInfo, fence: Fence) -> Result
unsafe fn QueueWaitIdle(&self, queue: Queue) -> Result
unsafe fn DeviceWaitIdle(&self, device: Device) -> Result
unsafe fn AllocateMemory(&self, device: Device, pAllocateInfo: *const MemoryAllocateInfo, pAllocator: *const AllocationCallbacks, pMemory: *mut DeviceMemory) -> Result
unsafe fn FreeMemory(&self, device: Device, memory: DeviceMemory, pAllocator: *const AllocationCallbacks)
unsafe fn MapMemory(&self, device: Device, memory: DeviceMemory, offset: DeviceSize, size: DeviceSize, flags: MemoryMapFlags, ppData: *mut *mut c_void) -> Result
unsafe fn UnmapMemory(&self, device: Device, memory: DeviceMemory)
unsafe fn FlushMappedMemoryRanges(&self, device: Device, memoryRangeCount: u32, pMemoryRanges: *const MappedMemoryRange) -> Result
unsafe fn InvalidateMappedMemoryRanges(&self, device: Device, memoryRangeCount: u32, pMemoryRanges: *const MappedMemoryRange) -> Result
unsafe fn GetDeviceMemoryCommitment(&self, device: Device, memory: DeviceMemory, pCommittedMemoryInBytes: *mut DeviceSize)
unsafe fn BindBufferMemory(&self, device: Device, buffer: Buffer, memory: DeviceMemory, memoryOffset: DeviceSize) -> Result
unsafe fn BindImageMemory(&self, device: Device, image: Image, memory: DeviceMemory, memoryOffset: DeviceSize) -> Result
unsafe fn GetBufferMemoryRequirements(&self, device: Device, buffer: Buffer, pMemoryRequirements: *mut MemoryRequirements)
unsafe fn GetImageMemoryRequirements(&self, device: Device, image: Image, pMemoryRequirements: *mut MemoryRequirements)
unsafe fn GetImageSparseMemoryRequirements(&self, device: Device, image: Image, pSparseMemoryRequirementCount: *mut u32, pSparseMemoryRequirements: *mut SparseImageMemoryRequirements)
unsafe fn QueueBindSparse(&self, queue: Queue, bindInfoCount: u32, pBindInfo: *const BindSparseInfo, fence: Fence) -> Result
unsafe fn CreateFence(&self, device: Device, pCreateInfo: *const FenceCreateInfo, pAllocator: *const AllocationCallbacks, pFence: *mut Fence) -> Result
unsafe fn DestroyFence(&self, device: Device, fence: Fence, pAllocator: *const AllocationCallbacks)
unsafe fn ResetFences(&self, device: Device, fenceCount: u32, pFences: *const Fence) -> Result
unsafe fn GetFenceStatus(&self, device: Device, fence: Fence) -> Result
unsafe fn WaitForFences(&self, device: Device, fenceCount: u32, pFences: *const Fence, waitAll: Bool32, timeout: u64) -> Result
unsafe fn CreateSemaphore(&self, device: Device, pCreateInfo: *const SemaphoreCreateInfo, pAllocator: *const AllocationCallbacks, pSemaphore: *mut Semaphore) -> Result
unsafe fn DestroySemaphore(&self, device: Device, semaphore: Semaphore, pAllocator: *const AllocationCallbacks)
unsafe fn CreateEvent(&self, device: Device, pCreateInfo: *const EventCreateInfo, pAllocator: *const AllocationCallbacks, pEvent: *mut Event) -> Result
unsafe fn DestroyEvent(&self, device: Device, event: Event, pAllocator: *const AllocationCallbacks)
unsafe fn GetEventStatus(&self, device: Device, event: Event) -> Result
unsafe fn SetEvent(&self, device: Device, event: Event) -> Result
unsafe fn ResetEvent(&self, device: Device, event: Event) -> Result
unsafe fn CreateQueryPool(&self, device: Device, pCreateInfo: *const QueryPoolCreateInfo, pAllocator: *const AllocationCallbacks, pQueryPool: *mut QueryPool) -> Result
unsafe fn DestroyQueryPool(&self, device: Device, queryPool: QueryPool, pAllocator: *const AllocationCallbacks)
unsafe fn GetQueryPoolResults(&self, device: Device, queryPool: QueryPool, firstQuery: u32, queryCount: u32, dataSize: usize, pData: *mut c_void, stride: DeviceSize, flags: QueryResultFlags) -> Result
unsafe fn CreateBuffer(&self, device: Device, pCreateInfo: *const BufferCreateInfo, pAllocator: *const AllocationCallbacks, pBuffer: *mut Buffer) -> Result
unsafe fn DestroyBuffer(&self, device: Device, buffer: Buffer, pAllocator: *const AllocationCallbacks)
unsafe fn CreateBufferView(&self, device: Device, pCreateInfo: *const BufferViewCreateInfo, pAllocator: *const AllocationCallbacks, pView: *mut BufferView) -> Result
unsafe fn DestroyBufferView(&self, device: Device, bufferView: BufferView, pAllocator: *const AllocationCallbacks)
unsafe fn CreateImage(&self, device: Device, pCreateInfo: *const ImageCreateInfo, pAllocator: *const AllocationCallbacks, pImage: *mut Image) -> Result
unsafe fn DestroyImage(&self, device: Device, image: Image, pAllocator: *const AllocationCallbacks)
unsafe fn GetImageSubresourceLayout(&self, device: Device, image: Image, pSubresource: *const ImageSubresource, pLayout: *mut SubresourceLayout)
unsafe fn CreateImageView(&self, device: Device, pCreateInfo: *const ImageViewCreateInfo, pAllocator: *const AllocationCallbacks, pView: *mut ImageView) -> Result
unsafe fn DestroyImageView(&self, device: Device, imageView: ImageView, pAllocator: *const AllocationCallbacks)
unsafe fn CreateShaderModule(&self, device: Device, pCreateInfo: *const ShaderModuleCreateInfo, pAllocator: *const AllocationCallbacks, pShaderModule: *mut ShaderModule) -> Result
unsafe fn DestroyShaderModule(&self, device: Device, shaderModule: ShaderModule, pAllocator: *const AllocationCallbacks)
unsafe fn CreatePipelineCache(&self, device: Device, pCreateInfo: *const PipelineCacheCreateInfo, pAllocator: *const AllocationCallbacks, pPipelineCache: *mut PipelineCache) -> Result
unsafe fn DestroyPipelineCache(&self, device: Device, pipelineCache: PipelineCache, pAllocator: *const AllocationCallbacks)
unsafe fn GetPipelineCacheData(&self, device: Device, pipelineCache: PipelineCache, pDataSize: *mut usize, pData: *mut c_void) -> Result
unsafe fn MergePipelineCaches(&self, device: Device, dstCache: PipelineCache, srcCacheCount: u32, pSrcCaches: *const PipelineCache) -> Result
unsafe fn CreateGraphicsPipelines(&self, device: Device, pipelineCache: PipelineCache, createInfoCount: u32, pCreateInfos: *const GraphicsPipelineCreateInfo, pAllocator: *const AllocationCallbacks, pPipelines: *mut Pipeline) -> Result
unsafe fn CreateComputePipelines(&self, device: Device, pipelineCache: PipelineCache, createInfoCount: u32, pCreateInfos: *const ComputePipelineCreateInfo, pAllocator: *const AllocationCallbacks, pPipelines: *mut Pipeline) -> Result
unsafe fn DestroyPipeline(&self, device: Device, pipeline: Pipeline, pAllocator: *const AllocationCallbacks)
unsafe fn CreatePipelineLayout(&self, device: Device, pCreateInfo: *const PipelineLayoutCreateInfo, pAllocator: *const AllocationCallbacks, pPipelineLayout: *mut PipelineLayout) -> Result
unsafe fn DestroyPipelineLayout(&self, device: Device, pipelineLayout: PipelineLayout, pAllocator: *const AllocationCallbacks)
unsafe fn CreateSampler(&self, device: Device, pCreateInfo: *const SamplerCreateInfo, pAllocator: *const AllocationCallbacks, pSampler: *mut Sampler) -> Result
unsafe fn DestroySampler(&self, device: Device, sampler: Sampler, pAllocator: *const AllocationCallbacks)
unsafe fn CreateDescriptorSetLayout(&self, device: Device, pCreateInfo: *const DescriptorSetLayoutCreateInfo, pAllocator: *const AllocationCallbacks, pSetLayout: *mut DescriptorSetLayout) -> Result
unsafe fn DestroyDescriptorSetLayout(&self, device: Device, descriptorSetLayout: DescriptorSetLayout, pAllocator: *const AllocationCallbacks)
unsafe fn CreateDescriptorPool(&self, device: Device, pCreateInfo: *const DescriptorPoolCreateInfo, pAllocator: *const AllocationCallbacks, pDescriptorPool: *mut DescriptorPool) -> Result
unsafe fn DestroyDescriptorPool(&self, device: Device, descriptorPool: DescriptorPool, pAllocator: *const AllocationCallbacks)
unsafe fn ResetDescriptorPool(&self, device: Device, descriptorPool: DescriptorPool, flags: DescriptorPoolResetFlags) -> Result
unsafe fn AllocateDescriptorSets(&self, device: Device, pAllocateInfo: *const DescriptorSetAllocateInfo, pDescriptorSets: *mut DescriptorSet) -> Result
unsafe fn FreeDescriptorSets(&self, device: Device, descriptorPool: DescriptorPool, descriptorSetCount: u32, pDescriptorSets: *const DescriptorSet) -> Result
unsafe fn UpdateDescriptorSets(&self, device: Device, descriptorWriteCount: u32, pDescriptorWrites: *const WriteDescriptorSet, descriptorCopyCount: u32, pDescriptorCopies: *const CopyDescriptorSet)
unsafe fn CreateFramebuffer(&self, device: Device, pCreateInfo: *const FramebufferCreateInfo, pAllocator: *const AllocationCallbacks, pFramebuffer: *mut Framebuffer) -> Result
unsafe fn DestroyFramebuffer(&self, device: Device, framebuffer: Framebuffer, pAllocator: *const AllocationCallbacks)
unsafe fn CreateRenderPass(&self, device: Device, pCreateInfo: *const RenderPassCreateInfo, pAllocator: *const AllocationCallbacks, pRenderPass: *mut RenderPass) -> Result
unsafe fn DestroyRenderPass(&self, device: Device, renderPass: RenderPass, pAllocator: *const AllocationCallbacks)
unsafe fn GetRenderAreaGranularity(&self, device: Device, renderPass: RenderPass, pGranularity: *mut Extent2D)
unsafe fn CreateCommandPool(&self, device: Device, pCreateInfo: *const CommandPoolCreateInfo, pAllocator: *const AllocationCallbacks, pCommandPool: *mut CommandPool) -> Result
unsafe fn DestroyCommandPool(&self, device: Device, commandPool: CommandPool, pAllocator: *const AllocationCallbacks)
unsafe fn ResetCommandPool(&self, device: Device, commandPool: CommandPool, flags: CommandPoolResetFlags) -> Result
unsafe fn AllocateCommandBuffers(&self, device: Device, pAllocateInfo: *const CommandBufferAllocateInfo, pCommandBuffers: *mut CommandBuffer) -> Result
unsafe fn FreeCommandBuffers(&self, device: Device, commandPool: CommandPool, commandBufferCount: u32, pCommandBuffers: *const CommandBuffer)
unsafe fn BeginCommandBuffer(&self, commandBuffer: CommandBuffer, pBeginInfo: *const CommandBufferBeginInfo) -> Result
unsafe fn EndCommandBuffer(&self, commandBuffer: CommandBuffer) -> Result
unsafe fn ResetCommandBuffer(&self, commandBuffer: CommandBuffer, flags: CommandBufferResetFlags) -> Result
unsafe fn CmdBindPipeline(&self, commandBuffer: CommandBuffer, pipelineBindPoint: PipelineBindPoint, pipeline: Pipeline)
unsafe fn CmdSetViewport(&self, commandBuffer: CommandBuffer, firstViewport: u32, viewportCount: u32, pViewports: *const Viewport)
unsafe fn CmdSetScissor(&self, commandBuffer: CommandBuffer, firstScissor: u32, scissorCount: u32, pScissors: *const Rect2D)
unsafe fn CmdSetLineWidth(&self, commandBuffer: CommandBuffer, lineWidth: f32)
unsafe fn CmdSetDepthBias(&self, commandBuffer: CommandBuffer, depthBiasConstantFactor: f32, depthBiasClamp: f32, depthBiasSlopeFactor: f32)
unsafe fn CmdSetBlendConstants(&self, commandBuffer: CommandBuffer, blendConstants: [f32; 4])
unsafe fn CmdSetDepthBounds(&self, commandBuffer: CommandBuffer, minDepthBounds: f32, maxDepthBounds: f32)
unsafe fn CmdSetStencilCompareMask(&self, commandBuffer: CommandBuffer, faceMask: StencilFaceFlags, compareMask: u32)
unsafe fn CmdSetStencilWriteMask(&self, commandBuffer: CommandBuffer, faceMask: StencilFaceFlags, writeMask: u32)
unsafe fn CmdSetStencilReference(&self, commandBuffer: CommandBuffer, faceMask: StencilFaceFlags, reference: u32)
unsafe fn CmdBindDescriptorSets(&self, commandBuffer: CommandBuffer, pipelineBindPoint: PipelineBindPoint, layout: PipelineLayout, firstSet: u32, descriptorSetCount: u32, pDescriptorSets: *const DescriptorSet, dynamicOffsetCount: u32, pDynamicOffsets: *const u32)
unsafe fn CmdBindIndexBuffer(&self, commandBuffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, indexType: IndexType)
unsafe fn CmdBindVertexBuffers(&self, commandBuffer: CommandBuffer, firstBinding: u32, bindingCount: u32, pBuffers: *const Buffer, pOffsets: *const DeviceSize)
unsafe fn CmdDraw(&self, commandBuffer: CommandBuffer, vertexCount: u32, instanceCount: u32, firstVertex: u32, firstInstance: u32)
unsafe fn CmdDrawIndexed(&self, commandBuffer: CommandBuffer, indexCount: u32, instanceCount: u32, firstIndex: u32, vertexOffset: i32, firstInstance: u32)
unsafe fn CmdDrawIndirect(&self, commandBuffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, drawCount: u32, stride: u32)
unsafe fn CmdDrawIndexedIndirect(&self, commandBuffer: CommandBuffer, buffer: Buffer, offset: DeviceSize, drawCount: u32, stride: u32)
unsafe fn CmdDispatch(&self, commandBuffer: CommandBuffer, x: u32, y: u32, z: u32)
unsafe fn CmdDispatchIndirect(&self, commandBuffer: CommandBuffer, buffer: Buffer, offset: DeviceSize)
unsafe fn CmdCopyBuffer(&self, commandBuffer: CommandBuffer, srcBuffer: Buffer, dstBuffer: Buffer, regionCount: u32, pRegions: *const BufferCopy)
unsafe fn CmdCopyImage(&self, commandBuffer: CommandBuffer, srcImage: Image, srcImageLayout: ImageLayout, dstImage: Image, dstImageLayout: ImageLayout, regionCount: u32, pRegions: *const ImageCopy)
unsafe fn CmdBlitImage(&self, commandBuffer: CommandBuffer, srcImage: Image, srcImageLayout: ImageLayout, dstImage: Image, dstImageLayout: ImageLayout, regionCount: u32, pRegions: *const ImageBlit, filter: Filter)
unsafe fn CmdCopyBufferToImage(&self, commandBuffer: CommandBuffer, srcBuffer: Buffer, dstImage: Image, dstImageLayout: ImageLayout, regionCount: u32, pRegions: *const BufferImageCopy)
unsafe fn CmdCopyImageToBuffer(&self, commandBuffer: CommandBuffer, srcImage: Image, srcImageLayout: ImageLayout, dstBuffer: Buffer, regionCount: u32, pRegions: *const BufferImageCopy)
unsafe fn CmdUpdateBuffer(&self, commandBuffer: CommandBuffer, dstBuffer: Buffer, dstOffset: DeviceSize, dataSize: DeviceSize, pData: *const u32)
unsafe fn CmdFillBuffer(&self, commandBuffer: CommandBuffer, dstBuffer: Buffer, dstOffset: DeviceSize, size: DeviceSize, data: u32)
unsafe fn CmdClearColorImage(&self, commandBuffer: CommandBuffer, image: Image, imageLayout: ImageLayout, pColor: *const ClearColorValue, rangeCount: u32, pRanges: *const ImageSubresourceRange)
unsafe fn CmdClearDepthStencilImage(&self, commandBuffer: CommandBuffer, image: Image, imageLayout: ImageLayout, pDepthStencil: *const ClearDepthStencilValue, rangeCount: u32, pRanges: *const ImageSubresourceRange)
unsafe fn CmdClearAttachments(&self, commandBuffer: CommandBuffer, attachmentCount: u32, pAttachments: *const ClearAttachment, rectCount: u32, pRects: *const ClearRect)
unsafe fn CmdResolveImage(&self, commandBuffer: CommandBuffer, srcImage: Image, srcImageLayout: ImageLayout, dstImage: Image, dstImageLayout: ImageLayout, regionCount: u32, pRegions: *const ImageResolve)
unsafe fn CmdSetEvent(&self, commandBuffer: CommandBuffer, event: Event, stageMask: PipelineStageFlags)
unsafe fn CmdResetEvent(&self, commandBuffer: CommandBuffer, event: Event, stageMask: PipelineStageFlags)
unsafe fn CmdWaitEvents(&self, commandBuffer: CommandBuffer, eventCount: u32, pEvents: *const Event, srcStageMask: PipelineStageFlags, dstStageMask: PipelineStageFlags, memoryBarrierCount: u32, pMemoryBarriers: *const MemoryBarrier, bufferMemoryBarrierCount: u32, pBufferMemoryBarriers: *const BufferMemoryBarrier, imageMemoryBarrierCount: u32, pImageMemoryBarriers: *const ImageMemoryBarrier)
unsafe fn CmdPipelineBarrier(&self, commandBuffer: CommandBuffer, srcStageMask: PipelineStageFlags, dstStageMask: PipelineStageFlags, dependencyFlags: DependencyFlags, memoryBarrierCount: u32, pMemoryBarriers: *const MemoryBarrier, bufferMemoryBarrierCount: u32, pBufferMemoryBarriers: *const BufferMemoryBarrier, imageMemoryBarrierCount: u32, pImageMemoryBarriers: *const ImageMemoryBarrier)
unsafe fn CmdBeginQuery(&self, commandBuffer: CommandBuffer, queryPool: QueryPool, query: u32, flags: QueryControlFlags)
unsafe fn CmdEndQuery(&self, commandBuffer: CommandBuffer, queryPool: QueryPool, query: u32)
unsafe fn CmdResetQueryPool(&self, commandBuffer: CommandBuffer, queryPool: QueryPool, firstQuery: u32, queryCount: u32)
unsafe fn CmdWriteTimestamp(&self, commandBuffer: CommandBuffer, pipelineStage: PipelineStageFlagBits, queryPool: QueryPool, query: u32)
unsafe fn CmdCopyQueryPoolResults(&self, commandBuffer: CommandBuffer, queryPool: QueryPool, firstQuery: u32, queryCount: u32, dstBuffer: Buffer, dstOffset: DeviceSize, stride: DeviceSize, flags: QueryResultFlags)
unsafe fn CmdPushConstants(&self, commandBuffer: CommandBuffer, layout: PipelineLayout, stageFlags: ShaderStageFlags, offset: u32, size: u32, pValues: *const c_void)
unsafe fn CmdBeginRenderPass(&self, commandBuffer: CommandBuffer, pRenderPassBegin: *const RenderPassBeginInfo, contents: SubpassContents)
unsafe fn CmdNextSubpass(&self, commandBuffer: CommandBuffer, contents: SubpassContents)
unsafe fn CmdEndRenderPass(&self, commandBuffer: CommandBuffer)
unsafe fn CmdExecuteCommands(&self, commandBuffer: CommandBuffer, commandBufferCount: u32, pCommandBuffers: *const CommandBuffer)
unsafe fn CreateSwapchainKHR(&self, device: Device, pCreateInfo: *const SwapchainCreateInfoKHR, pAllocator: *const AllocationCallbacks, pSwapchain: *mut SwapchainKHR) -> Result
unsafe fn DestroySwapchainKHR(&self, device: Device, swapchain: SwapchainKHR, pAllocator: *const AllocationCallbacks)
unsafe fn GetSwapchainImagesKHR(&self, device: Device, swapchain: SwapchainKHR, pSwapchainImageCount: *mut u32, pSwapchainImages: *mut Image) -> Result
unsafe fn AcquireNextImageKHR(&self, device: Device, swapchain: SwapchainKHR, timeout: u64, semaphore: Semaphore, fence: Fence, pImageIndex: *mut u32) -> Result
unsafe fn QueuePresentKHR(&self, queue: Queue, pPresentInfo: *const PresentInfoKHR) -> Result
Trait Implementations
impl Debug for DevicePointers
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.