Struct ID3D12GraphicsCommandList

Source
#[repr(C)]
pub struct ID3D12GraphicsCommandList { pub lpVtbl: *const ID3D12GraphicsCommandListVtbl, }

Fields§

§lpVtbl: *const ID3D12GraphicsCommandListVtbl

Implementations§

Source§

impl ID3D12GraphicsCommandList

Source

pub unsafe fn Close(&self) -> HRESULT

Source

pub unsafe fn Reset( &self, pAllocator: *mut ID3D12CommandAllocator, pInitialState: *mut ID3D12PipelineState, ) -> HRESULT

Source

pub unsafe fn ClearState(&self, pPipelineState: *mut ID3D12PipelineState)

Source

pub unsafe fn DrawInstanced( &self, VertexCountPerInstance: UINT, InstanceCount: UINT, StartVertexLocation: UINT, StartInstanceLocation: UINT, )

Source

pub unsafe fn DrawIndexedInstanced( &self, IndexCountPerInstance: UINT, InstanceCount: UINT, StartIndexLocation: UINT, BaseVertexLocation: INT, StartInstanceLocation: UINT, )

Source

pub unsafe fn Dispatch( &self, ThreadGroupCountX: UINT, ThreadGroupCountY: UINT, ThreadGroupCountZ: UINT, )

Source

pub unsafe fn CopyBufferRegion( &self, pDstBuffer: *mut ID3D12Resource, DstOffset: UINT64, pSrcBuffer: *mut ID3D12Resource, SrcOffset: UINT64, NumBytes: UINT64, )

Source

pub unsafe fn CopyTextureRegion( &self, pDst: *const D3D12_TEXTURE_COPY_LOCATION, DstX: UINT, DstY: UINT, DstZ: UINT, pSrc: *const D3D12_TEXTURE_COPY_LOCATION, pSrcBox: *const D3D12_BOX, )

Source

pub unsafe fn CopyResource( &self, pDstResource: *mut ID3D12Resource, pSrcResource: *mut ID3D12Resource, )

Source

pub unsafe fn CopyTiles( &self, pTiledResource: *mut ID3D12Resource, pTileRegionStartCoordinate: *const D3D12_TILED_RESOURCE_COORDINATE, pTileRegionSize: *const D3D12_TILE_REGION_SIZE, pBuffer: *mut ID3D12Resource, BufferStartOffsetInBytes: UINT64, Flags: D3D12_TILE_COPY_FLAGS, )

Source

pub unsafe fn ResolveSubresource( &self, pDstResource: *mut ID3D12Resource, DstSubresource: UINT, pSrcResource: *mut ID3D12Resource, SrcSubresource: UINT, Format: DXGI_FORMAT, )

Source

pub unsafe fn IASetPrimitiveTopology( &self, PrimitiveTopology: D3D12_PRIMITIVE_TOPOLOGY, )

Source

pub unsafe fn RSSetViewports( &self, NumViewports: UINT, pViewports: *const D3D12_VIEWPORT, )

Source

pub unsafe fn RSSetScissorRects( &self, NumRects: UINT, pRects: *const D3D12_RECT, )

Source

pub unsafe fn OMSetBlendFactor(&self, BlendFactor: *const [FLOAT; 4])

Source

pub unsafe fn OMSetStencilRef(&self, StencilRef: UINT)

Source

pub unsafe fn SetPipelineState(&self, pPipelineState: *mut ID3D12PipelineState)

Source

pub unsafe fn ResourceBarrier( &self, NumBarriers: UINT, pBarriers: *const D3D12_RESOURCE_BARRIER, )

Source

pub unsafe fn ExecuteBundle(&self, pCommandList: *mut ID3D12GraphicsCommandList)

Source

pub unsafe fn SetDescriptorHeaps( &self, NumDescriptorHeaps: UINT, ppDescriptorHeaps: *mut *mut ID3D12DescriptorHeap, )

Source

pub unsafe fn SetComputeRootSignature( &self, pRootSignature: *mut ID3D12RootSignature, )

Source

pub unsafe fn SetGraphicsRootSignature( &self, pRootSignature: *mut ID3D12RootSignature, )

Source

pub unsafe fn SetComputeRootDescriptorTable( &self, RootParameterIndex: UINT, BaseDescriptor: D3D12_GPU_DESCRIPTOR_HANDLE, )

Source

pub unsafe fn SetGraphicsRootDescriptorTable( &self, RootParameterIndex: UINT, BaseDescriptor: D3D12_GPU_DESCRIPTOR_HANDLE, )

Source

pub unsafe fn SetComputeRoot32BitConstant( &self, RootParameterIndex: UINT, SrcData: UINT, DestOffsetIn32BitValues: UINT, )

Source

pub unsafe fn SetGraphicsRoot32BitConstant( &self, RootParameterIndex: UINT, SrcData: UINT, DestOffsetIn32BitValues: UINT, )

Source

pub unsafe fn SetComputeRoot32BitConstants( &self, RootParameterIndex: UINT, Num32BitValuesToSet: UINT, pSrcData: *const c_void, DestOffsetIn32BitValues: UINT, )

Source

pub unsafe fn SetGraphicsRoot32BitConstants( &self, RootParameterIndex: UINT, Num32BitValuesToSet: UINT, pSrcData: *const c_void, DestOffsetIn32BitValues: UINT, )

Source

pub unsafe fn SetComputeRootConstantBufferView( &self, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS, )

Source

pub unsafe fn SetGraphicsRootConstantBufferView( &self, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS, )

Source

pub unsafe fn SetComputeRootShaderResourceView( &self, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS, )

Source

pub unsafe fn SetGraphicsRootShaderResourceView( &self, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS, )

Source

pub unsafe fn SetComputeRootUnorderedAccessView( &self, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS, )

Source

pub unsafe fn SetGraphicsRootUnorderedAccessView( &self, RootParameterIndex: UINT, BufferLocation: D3D12_GPU_VIRTUAL_ADDRESS, )

Source

pub unsafe fn IASetIndexBuffer(&self, pView: *const D3D12_INDEX_BUFFER_VIEW)

Source

pub unsafe fn IASetVertexBuffers( &self, StartSlot: UINT, NumViews: UINT, pViews: *const D3D12_VERTEX_BUFFER_VIEW, )

Source

pub unsafe fn SOSetTargets( &self, StartSlot: UINT, NumViews: UINT, pViews: *const D3D12_STREAM_OUTPUT_BUFFER_VIEW, )

Source

pub unsafe fn OMSetRenderTargets( &self, NumRenderTargetDescriptors: UINT, pRenderTargetDescriptors: *const D3D12_CPU_DESCRIPTOR_HANDLE, RTsSingleHandleToDescriptorRange: BOOL, pDepthStencilDescriptor: *const D3D12_CPU_DESCRIPTOR_HANDLE, )

Source

pub unsafe fn ClearDepthStencilView( &self, DepthStencilView: D3D12_CPU_DESCRIPTOR_HANDLE, ClearFlags: D3D12_CLEAR_FLAGS, Depth: FLOAT, Stencil: UINT8, NumRects: UINT, pRects: *const D3D12_RECT, )

Source

pub unsafe fn ClearRenderTargetView( &self, RenderTargetView: D3D12_CPU_DESCRIPTOR_HANDLE, ColorRGBA: *const [FLOAT; 4], NumRects: UINT, pRects: *const D3D12_RECT, )

Source

pub unsafe fn ClearUnorderedAccessViewUint( &self, ViewGPUHandleInCurrentHeap: D3D12_GPU_DESCRIPTOR_HANDLE, ViewCPUHandle: D3D12_CPU_DESCRIPTOR_HANDLE, pResource: *mut ID3D12Resource, Values: *const [UINT; 4], NumRects: UINT, pRects: *const D3D12_RECT, )

Source

pub unsafe fn ClearUnorderedAccessViewFloat( &self, ViewGPUHandleInCurrentHeap: D3D12_GPU_DESCRIPTOR_HANDLE, ViewCPUHandle: D3D12_CPU_DESCRIPTOR_HANDLE, pResource: *mut ID3D12Resource, Values: *const [FLOAT; 4], NumRects: UINT, pRects: *const D3D12_RECT, )

Source

pub unsafe fn DiscardResource( &self, pResource: *mut ID3D12Resource, pRegion: *const D3D12_DISCARD_REGION, )

Source

pub unsafe fn BeginQuery( &self, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, Index: UINT, )

Source

pub unsafe fn EndQuery( &self, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, Index: UINT, )

Source

pub unsafe fn ResolveQueryData( &self, pQueryHeap: *mut ID3D12QueryHeap, Type: D3D12_QUERY_TYPE, StartIndex: UINT, NumQueries: UINT, pDestinationBuffer: *mut ID3D12Resource, AlignedDestinationBufferOffset: UINT64, )

Source

pub unsafe fn SetPredication( &self, pBuffer: *mut ID3D12Resource, AlignedBufferOffset: UINT64, Operation: D3D12_PREDICATION_OP, )

Source

pub unsafe fn SetMarker(&self, Metadata: UINT, pData: *const c_void, Size: UINT)

Source

pub unsafe fn BeginEvent( &self, Metadata: UINT, pData: *const c_void, Size: UINT, )

Source

pub unsafe fn EndEvent(&self)

Source

pub unsafe fn ExecuteIndirect( &self, pCommandSignature: *mut ID3D12CommandSignature, MaxCommandCount: UINT, pArgumentBuffer: *mut ID3D12Resource, ArgumentBufferOffset: UINT64, pCountBuffer: *mut ID3D12Resource, CountBufferOffset: UINT64, )

Methods from Deref<Target = ID3D12CommandList>§

Source

pub unsafe fn GetType(&self) -> D3D12_COMMAND_LIST_TYPE

Methods from Deref<Target = ID3D12DeviceChild>§

Source

pub unsafe fn GetDevice( &self, riid: REFIID, ppvDevice: *mut *mut c_void, ) -> HRESULT

Methods from Deref<Target = ID3D12Object>§

Source

pub unsafe fn GetPrivateData( &self, guid: REFGUID, pDataSize: *mut UINT, pData: *mut c_void, ) -> HRESULT

Source

pub unsafe fn SetPrivateData( &self, guid: REFGUID, DataSize: UINT, pData: *const c_void, ) -> HRESULT

Source

pub unsafe fn SetPrivateDataInterface( &self, guid: REFGUID, pData: *const IUnknown, ) -> HRESULT

Source

pub unsafe fn SetName(&self, Name: LPCWSTR) -> HRESULT

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn QueryInterface( &self, riid: REFIID, ppvObject: *mut *mut c_void, ) -> HRESULT

Source

pub unsafe fn AddRef(&self) -> ULONG

Source

pub unsafe fn Release(&self) -> ULONG

Trait Implementations§

Source§

impl Deref for ID3D12GraphicsCommandList

Source§

type Target = ID3D12CommandList

The resulting type after dereferencing.
Source§

fn deref(&self) -> &ID3D12CommandList

Dereferences the value.
Source§

impl Interface for ID3D12GraphicsCommandList

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.