[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.DeviceContext

DeviceContext Class

ID3D11DeviceContext

Implements
Namespace: C1.Util.DX.Direct3D11
Assembly: C1.Win.C1DX.4.8.dll
Syntax
[Guid("c0bfa96c-e089-44fb-8eaf-26f8796190da")]
public class DeviceContext : DeviceChild, IDisposable, IUnknown

Constructors

Name Description
DeviceContext(IntPtr)

Initializes a new instance of the DeviceContext class.

Properties

Name Description
ComputeShader

Inner interface giving access to ComputeShaderStage methods.

DomainShader

Inner interface giving access to DomainShaderStage methods.

GeometryShader

Inner interface giving access to GeometryShaderStage methods.

HullShader

Inner interface giving access to HullShaderStage methods.

InputAssembler

Inner interface giving access to InputAssemblerStage methods.

OutputMerger

Inner interface giving access to OutputMergerStage methods.

PixelShader

Inner interface giving access to PixelShaderStage methods.

Rasterizer

Inner interface giving access to RasterizerStage methods.

StreamOutput

Inner interface giving access to StreamOutputStage methods.

VertexShader

Inner interface giving access to VertexShaderStage methods.

Methods

Name Description
Begin(Asynchronous)

void ID3D11DeviceContext::Begin([In] ID3D11Asynchronous* pAsync)

ClearDepthStencilView(DepthStencilView, DepthStencilClearFlags, float, byte)

void ID3D11DeviceContext::ClearDepthStencilView([In] ID3D11DepthStencilView* pDepthStencilView,[In] D3D11_CLEAR_FLAG ClearFlags,[In] float Depth,[In] unsigned char Stencil)

ClearRenderTargetView(RenderTargetView, ColorF)

void ID3D11DeviceContext::ClearRenderTargetView([In] ID3D11RenderTargetView* pRenderTargetView,[In] const SHARPDX_COLOR4* ColorRGBA)

ClearState()

void ID3D11DeviceContext::ClearState()

ClearUnorderedAccessView(UnorderedAccessView, Vector4)

void ID3D11DeviceContext::ClearUnorderedAccessViewFloat([In] ID3D11UnorderedAccessView* pUnorderedAccessView,[In] const SHARPDX_VECTOR4* Values)

ClearUnorderedAccessView(UnorderedAccessView, int[])

void ID3D11DeviceContext::ClearUnorderedAccessViewUint([In] ID3D11UnorderedAccessView* pUnorderedAccessView,[In] const SHARPDX_INT4* Values)

CopyResource(Resource, Resource)

Copy the entire contents of the source resource to the destination resource using the GPU.

CopyResource_(Resource, Resource)

void ID3D11DeviceContext::CopyResource([In] ID3D11Resource* pDstResource,[In] ID3D11Resource* pSrcResource)

CopyStructureCount(Buffer, int, UnorderedAccessView)

void ID3D11DeviceContext::CopyStructureCount([In] ID3D11Buffer* pDstBuffer,[In] unsigned int DstAlignedByteOffset,[In] ID3D11UnorderedAccessView* pSrcView)

CopySubresourceRegion(Resource, int, ResourceRegion?, Resource, int, int, int, int)

Copy a region from a source resource to a destination resource.

CopySubresourceRegion_(Resource, int, int, int, int, Resource, int, ResourceRegion?)

void ID3D11DeviceContext::CopySubresourceRegion([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In] unsigned int DstX,[In] unsigned int DstY,[In] unsigned int DstZ,[In] ID3D11Resource* pSrcResource,[In] unsigned int SrcSubresource,[In, Optional] const D3D11_BOX* pSrcBox)

Create(Device)

Constructs a new deferred context DeviceContext.

Dispatch(int, int, int)

void ID3D11DeviceContext::Dispatch([In] unsigned int ThreadGroupCountX,[In] unsigned int ThreadGroupCountY,[In] unsigned int ThreadGroupCountZ)

DispatchIndirect(Buffer, int)

void ID3D11DeviceContext::DispatchIndirect([In] ID3D11Buffer* pBufferForArgs,[In] unsigned int AlignedByteOffsetForArgs)

Dispose(bool)

Clean up any resources being used.

Draw(int, int)

void ID3D11DeviceContext::Draw([In] unsigned int VertexCount,[In] unsigned int StartVertexLocation)

DrawAuto()

void ID3D11DeviceContext::DrawAuto()

DrawIndexed(int, int, int)

void ID3D11DeviceContext::DrawIndexed([In] unsigned int IndexCount,[In] unsigned int StartIndexLocation,[In] int BaseVertexLocation)

DrawIndexedInstanced(int, int, int, int, int)

void ID3D11DeviceContext::DrawIndexedInstanced([In] unsigned int IndexCountPerInstance,[In] unsigned int InstanceCount,[In] unsigned int StartIndexLocation,[In] int BaseVertexLocation,[In] unsigned int StartInstanceLocation)

DrawIndexedInstancedIndirect(Buffer, int)

void ID3D11DeviceContext::DrawIndexedInstancedIndirect([In] ID3D11Buffer* pBufferForArgs,[In] unsigned int AlignedByteOffsetForArgs)

DrawInstanced(int, int, int, int)

void ID3D11DeviceContext::DrawInstanced([In] unsigned int VertexCountPerInstance,[In] unsigned int InstanceCount,[In] unsigned int StartVertexLocation,[In] unsigned int StartInstanceLocation)

DrawInstancedIndirect(Buffer, int)

void ID3D11DeviceContext::DrawInstancedIndirect([In] ID3D11Buffer* pBufferForArgs,[In] unsigned int AlignedByteOffsetForArgs)

End(Asynchronous)

void ID3D11DeviceContext::End([In] ID3D11Asynchronous* pAsync)

ExecuteCommandList(CommandList, Bool)

void ID3D11DeviceContext::ExecuteCommandList([In] ID3D11CommandList* pCommandList,[In] BOOL RestoreContextState)

FinishCommandList(Bool)

HRESULT ID3D11DeviceContext::FinishCommandList([In] BOOL RestoreDeferredContextState,[Out, Optional] ID3D11CommandList** ppCommandList)

Flush()

void ID3D11DeviceContext::Flush()

GenerateMips(ShaderResourceView)

void ID3D11DeviceContext::GenerateMips([In] ID3D11ShaderResourceView* pShaderResourceView)

GetContextFlags()

unsigned int ID3D11DeviceContext::GetContextFlags()

GetData(Asynchronous)

Gets data from the GPU asynchronously.

GetData(Asynchronous, AsynchronousFlags)

Gets data from the GPU asynchronously.

GetDataInternal(Asynchronous, IntPtr, int, AsynchronousFlags)

HRESULT ID3D11DeviceContext::GetData([In] ID3D11Asynchronous* pAsync,[Out, Buffer, Optional] void* pData,[In] unsigned int DataSize,[In] D3D11_ASYNC_GETDATA_FLAG GetDataFlags)

GetData<T>(Asynchronous)

Gets data from the GPU asynchronously.

GetData<T>(Asynchronous, AsynchronousFlags)

Gets data from the GPU asynchronously.

GetData<T>(Asynchronous, AsynchronousFlags, out T)

Gets data from the GPU asynchronously.

GetData<T>(Asynchronous, out T)

Gets data from the GPU asynchronously.

GetMinimumLod(Resource)

float ID3D11DeviceContext::GetResourceMinLOD([In] ID3D11Resource* pResource)

GetPredication(out Bool)

void ID3D11DeviceContext::GetPredication([Out, Optional] ID3D11Predicate** ppPredicate,[Out, Optional] BOOL* pPredicateValue)

GetTypeInfo()

D3D11_DEVICE_CONTEXT_TYPE ID3D11DeviceContext::GetType()

IsDataAvailable(Asynchronous)

Determines whether asynchronous query data is available.

IsDataAvailable(Asynchronous, AsynchronousFlags)

Determines whether asynchronous query data is available.

MapSubresource(Buffer, MapMode, MapFlags, out DataStream)

Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.

MapSubresource(Resource, int, MapMode, MapFlags)

Gets a reference to the data contained in a subresource, and denies the GPU access to that subresource.

MapSubresource(Resource, int, MapMode, MapFlags, out DataBox)

HRESULT ID3D11DeviceContext::Map([In] ID3D11Resource* pResource,[In] unsigned int Subresource,[In] D3D11_MAP MapType,[In] D3D11_MAP_FLAG MapFlags,[Out] D3D11_MAPPED_SUBRESOURCE* pMappedResource)

MapSubresource(Resource, int, MapMode, MapFlags, out DataStream)

Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.

MapSubresource(Resource, int, int, MapMode, MapFlags, out int)

Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.

MapSubresource(Texture1D, int, int, MapMode, MapFlags, out DataStream)

Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.

MapSubresource(Texture2D, int, int, MapMode, MapFlags, out DataStream)

Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.

MapSubresource(Texture3D, int, int, MapMode, MapFlags, out DataStream)

Maps the data contained in a subresource to a memory pointer, and denies the GPU access to that subresource.

NativePointerUpdated(IntPtr)

Method called when the NativePointer is updated.

ResolveSubresource(Resource, int, Resource, int, Format)

Copy a multisampled resource into a non-multisampled resource.

ResolveSubresource_(Resource, int, Resource, int, Format)

void ID3D11DeviceContext::ResolveSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In] ID3D11Resource* pSrcResource,[In] unsigned int SrcSubresource,[In] DXGI_FORMAT Format)

SetMinimumLod(Resource, float)

void ID3D11DeviceContext::SetResourceMinLOD([In] ID3D11Resource* pResource,[In] float MinLOD)

SetPredication(Predicate, Bool)

void ID3D11DeviceContext::SetPredication([In, Optional] ID3D11Predicate* pPredicate,[In] BOOL PredicateValue)

UnmapSubresource(Resource, int)

void ID3D11DeviceContext::Unmap([In] ID3D11Resource* pResource,[In] unsigned int Subresource)

UpdateSubresource(DataBox, Resource, int)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresource(DataBox, Resource, int, ResourceRegion)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresource(Resource, int, ResourceRegion?, IntPtr, int, int)

void ID3D11DeviceContext::UpdateSubresource([In] ID3D11Resource* pDstResource,[In] unsigned int DstSubresource,[In, Optional] const D3D11_BOX* pDstBox,[In] const void* pSrcData,[In] unsigned int SrcRowPitch,[In] unsigned int SrcDepthPitch)

UpdateSubresourceSafe(DataBox, Resource, int, int, ResourceRegion, bool)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresourceSafe(DataBox, Resource, int, int, bool)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresourceSafe<T>(ref T, Resource, int, int, int, int, bool)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresourceSafe<T>(T[], Resource, int, int, int, int, bool)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresource<T>(ref T, Resource, int, int, int, ResourceRegion?)

Copies data from the CPU to to a non-mappable subresource region.

UpdateSubresource<T>(T[], Resource, int, int, int, ResourceRegion?)

Copies data from the CPU to to a non-mappable subresource region.

Operators

Name Description
explicit operator DeviceContext(IntPtr)

Performs an explicit conversion from IntPtr to DeviceContext.