示例#1
0
 public Result CopyTileMappings(
     ID3D11Resource destTiledResource, TiledResourceCoordinate destRegionStartCoordinate,
     ID3D11Resource sourceTiledResource, TiledResourceCoordinate sourceRegionStartCoordinate,
     TileRegionSize tileRegionSize)
 {
     return(CopyTileMappings(destTiledResource, destRegionStartCoordinate, sourceTiledResource, sourceRegionStartCoordinate, tileRegionSize, TileMappingFlags.None));
 }
示例#2
0
 public unsafe void ReadFromSubresource <T>(
     T[] destination, int destinationRowPitch, int destinationDepthPitch,
     ID3D11Resource sourceResource, int sourceSubresource, Box?sourceBox = null) where T : unmanaged
 {
     ReadFromSubresource(
         (IntPtr)Unsafe.AsPointer(ref destination[0]), destinationRowPitch, destinationDepthPitch,
         sourceResource, sourceSubresource, sourceBox);
 }
示例#3
0
 public unsafe void WriteToSubresource <T>(
     ID3D11Resource destinationResource, int destinationSubresource, Box destinationBox,
     T[] sourceData, int sourceRowPitch, int srcDepthPitch) where T : unmanaged
 {
     WriteToSubresource(
         destinationResource, destinationSubresource, destinationBox,
         (IntPtr)Unsafe.AsPointer(ref sourceData[0]), sourceRowPitch, srcDepthPitch
         );
 }
示例#4
0
 public unsafe void WriteToSubresource <T>(
     ID3D11Resource destinationResource, int destinationSubresource, Box destinationBox,
     Span <T> sourceData, int sourceRowPitch, int srcDepthPitch) where T : unmanaged
 {
     fixed(void *dataPtr = sourceData)
     {
         WriteToSubresource(destinationResource, destinationSubresource, destinationBox,
                            (IntPtr)dataPtr, sourceRowPitch, srcDepthPitch
                            );
     }
 }
 public unsafe void ReadFromSubresource <T>(
     T[] destination, int destinationRowPitch, int destinationDepthPitch,
     ID3D11Resource sourceResource, int sourceSubresource, Box?sourceBox = null) where T : unmanaged
 {
     fixed(void *destinationPtr = &destination[0])
     {
         ReadFromSubresource(
             (IntPtr)destinationPtr, destinationRowPitch, destinationDepthPitch,
             sourceResource, sourceSubresource, sourceBox);
     }
 }
 public unsafe void WriteToSubresource <T>(
     ID3D11Resource destinationResource, int destinationSubresource,
     T[] sourceData, int sourceRowPitch, int srcDepthPitch) where T : unmanaged
 {
     fixed(void *sourceDataPtr = &sourceData[0])
     {
         WriteToSubresource(
             destinationResource, destinationSubresource, null,
             (IntPtr)sourceDataPtr, sourceRowPitch, srcDepthPitch
             );
     }
 }
示例#7
0
 public Result UpdateTileMappings(
     ID3D11Resource tiledResource,
     TiledResourceCoordinate[] tiledResourceRegionStartCoordinates,
     TileRegionSize[] tiledResourceRegionSizes,
     ID3D11Buffer tilePool,
     TileRangeFlags[] rangeFlags,
     int[] tilePoolStartOffsets,
     int[] rangeTileCounts,
     TileMappingFlags flags = TileMappingFlags.None)
 {
     return(UpdateTileMappings(tiledResource,
                               tiledResourceRegionStartCoordinates.Length, tiledResourceRegionStartCoordinates, tiledResourceRegionSizes,
                               tilePool,
                               rangeFlags.Length, rangeFlags,
                               tilePoolStartOffsets,
                               rangeTileCounts,
                               flags));
 }
示例#8
0
 public ID3D11VideoProcessorOutputView CreateVideoProcessorOutputView(ID3D11Resource resource, ID3D11VideoProcessorEnumerator enumerator, VideoProcessorOutputViewDescription description)
 {
     CreateVideoProcessorOutputView(resource, enumerator, description, out ID3D11VideoProcessorOutputView view).CheckError();
     return(view);
 }
示例#9
0
 public Result CreateVideoDecoderOutputView(ID3D11Resource resource, VideoDecoderOutputViewDescription description, out ID3D11VideoDecoderOutputView view)
 {
     return(CreateVideoDecoderOutputView(resource, ref description, out view));
 }
示例#10
0
 public ID3D11VideoDecoderOutputView CreateVideoDecoderOutputView(ID3D11Resource resource, VideoDecoderOutputViewDescription description)
 {
     CreateVideoDecoderOutputView(resource, ref description, out ID3D11VideoDecoderOutputView view).CheckError();
     return(view);
 }
示例#11
0
 public void CopyTiles(ID3D11Resource tiledResource, TiledResourceCoordinate tileRegionStartCoordinate, TileRegionSize tileRegionSize, ID3D11Buffer buffer, ulong bufferStartOffsetInBytes)
 {
     CopyTiles(tiledResource, tileRegionStartCoordinate, tileRegionSize, buffer, bufferStartOffsetInBytes, TileCopyFlags.None);
 }