public DepthStencilView(GraphicsResource resource) : base(resource, CreateDepthStencilView(resource)) { }
public void CopyResource(GraphicsResource source, GraphicsResource destination) { currentCommandList.NativeCommandList.CopyResource(destination.NativeResource, source.NativeResource); }
public void ResourceBarrierTransition(GraphicsResource resource, ResourceStates stateBefore, ResourceStates stateAfter) { currentCommandList.NativeCommandList.ResourceBarrierTransition(resource.NativeResource, stateBefore, stateAfter); }
public unsafe void Clear(GraphicsResource renderTarget, Vector4 color) { currentCommandList.NativeCommandList.ClearRenderTargetView(renderTarget.NativeRenderTargetView, new Color4(color)); }
public void CopyBufferRegion(GraphicsResource source, long sourceOffset, GraphicsResource destination, long destinationOffset, long numBytes) { currentCommandList.NativeCommandList.CopyBufferRegion(destination.NativeResource, destinationOffset, source.NativeResource, sourceOffset, numBytes); }
public RenderTargetView(GraphicsResource resource) : this(resource, null) { }
protected ResourceView(GraphicsResource resource, IntPtr descriptor) { Resource = resource; CpuDescriptorHandle = descriptor; }
public ShaderResourceView(GraphicsResource resource) : this(resource, null) { }
internal RenderTargetView(GraphicsResource resource, RenderTargetViewDescription?description) : base(resource, CreateRenderTargetView(resource, description)) { Description = description; }
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>())); }
internal ShaderResourceView(GraphicsResource resource, ShaderResourceViewDescription?description) : base(resource, CreateShaderResourceView(resource, description)) { Description = description; }
public UnorderedAccessView(GraphicsResource resource) : this(resource, null) { }
internal UnorderedAccessView(GraphicsResource resource, UnorderedAccessViewDescription?description) : base(resource, CreateUnorderedAccessView(resource, description)) { Description = description; }
public ConstantBufferView(GraphicsResource resource) : base(resource, CreateConstantBufferView(resource)) { }