public DepthStencilView(GraphicsResource resource) : base(resource, CreateDepthStencilView(resource))
 {
 }
Ejemplo n.º 2
0
 public void CopyResource(GraphicsResource source, GraphicsResource destination)
 {
     currentCommandList.NativeCommandList.CopyResource(destination.NativeResource, source.NativeResource);
 }
Ejemplo n.º 3
0
 public void ResourceBarrierTransition(GraphicsResource resource, ResourceStates stateBefore, ResourceStates stateAfter)
 {
     currentCommandList.NativeCommandList.ResourceBarrierTransition(resource.NativeResource, stateBefore, stateAfter);
 }
Ejemplo n.º 4
0
 public unsafe void Clear(GraphicsResource renderTarget, Vector4 color)
 {
     currentCommandList.NativeCommandList.ClearRenderTargetView(renderTarget.NativeRenderTargetView, new Color4(color));
 }
Ejemplo n.º 5
0
 public void CopyBufferRegion(GraphicsResource source, long sourceOffset, GraphicsResource destination, long destinationOffset, long numBytes)
 {
     currentCommandList.NativeCommandList.CopyBufferRegion(destination.NativeResource, destinationOffset, source.NativeResource, sourceOffset, numBytes);
 }
Ejemplo n.º 6
0
 public RenderTargetView(GraphicsResource resource) : this(resource, null)
 {
 }
Ejemplo n.º 7
0
 protected ResourceView(GraphicsResource resource, IntPtr descriptor)
 {
     Resource            = resource;
     CpuDescriptorHandle = descriptor;
 }
Ejemplo n.º 8
0
 public ShaderResourceView(GraphicsResource resource) : this(resource, null)
 {
 }
Ejemplo n.º 9
0
 internal RenderTargetView(GraphicsResource resource, RenderTargetViewDescription?description) : base(resource, CreateRenderTargetView(resource, description))
 {
     Description = description;
 }
Ejemplo n.º 10
0
 public static ShaderResourceView FromBuffer <T>(GraphicsResource resource, long firstElement = 0, int elementCount = 0) where T : unmanaged
 {
     return(FromBuffer(resource, firstElement, elementCount == 0 ? (int)resource.Width / Unsafe.SizeOf <T>() : elementCount, Unsafe.SizeOf <T>()));
 }
Ejemplo n.º 11
0
 internal ShaderResourceView(GraphicsResource resource, ShaderResourceViewDescription?description) : base(resource, CreateShaderResourceView(resource, description))
 {
     Description = description;
 }
Ejemplo n.º 12
0
 public UnorderedAccessView(GraphicsResource resource) : this(resource, null)
 {
 }
Ejemplo n.º 13
0
 internal UnorderedAccessView(GraphicsResource resource, UnorderedAccessViewDescription?description) : base(resource, CreateUnorderedAccessView(resource, description))
 {
     Description = description;
 }
 public ConstantBufferView(GraphicsResource resource) : base(resource, CreateConstantBufferView(resource))
 {
 }