Ejemplo n.º 1
0
 // TODO: Code that uses temporary resources (that calls this method) should be changed to use Managers and their interfaces
 internal void CopySubresourceRegion(IResource source, int sourceSubresource, ResourceRegion?sourceRegion,
                                     Resource destination, int destinationSubResource, int dstX = 0, int dstY = 0, int dstZ = 0)
 {
     m_deviceContext.CopySubresourceRegion(source.Resource, sourceSubresource, sourceRegion, destination, destinationSubResource, dstX, dstY, dstZ);
     CheckErrors();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// copies entire subresource
 /// </summary>
 public void CopySubresource(Resource src, Resource dst, int srcSubresource, int dstSubresource, Size3 size)
 {
     context.CopySubresourceRegion(src, srcSubresource, new ResourceRegion(0, 0, 0, size.Width, size.Height, size.Depth),
                                   dst, dstSubresource);
 }