Exemple #1
0
 public Result CopyTileMappings(
     ID3D11Resource destTiledResource, TiledResourceCoordinate destRegionStartCoordinate,
     ID3D11Resource sourceTiledResource, TiledResourceCoordinate sourceRegionStartCoordinate,
     TileRegionSize tileRegionSize)
 {
     return(CopyTileMappings(destTiledResource, destRegionStartCoordinate, sourceTiledResource, sourceRegionStartCoordinate, tileRegionSize, TileMappingFlags.None));
 }
Exemple #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);
 }
Exemple #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
         );
 }
Exemple #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
             );
     }
 }
Exemple #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));
 }
Exemple #8
0
 public ID3D11VideoProcessorOutputView CreateVideoProcessorOutputView(ID3D11Resource resource, ID3D11VideoProcessorEnumerator enumerator, VideoProcessorOutputViewDescription description)
 {
     CreateVideoProcessorOutputView(resource, enumerator, description, out ID3D11VideoProcessorOutputView view).CheckError();
     return(view);
 }
Exemple #9
0
 public Result CreateVideoDecoderOutputView(ID3D11Resource resource, VideoDecoderOutputViewDescription description, out ID3D11VideoDecoderOutputView view)
 {
     return(CreateVideoDecoderOutputView(resource, ref description, out view));
 }
Exemple #10
0
 public ID3D11VideoDecoderOutputView CreateVideoDecoderOutputView(ID3D11Resource resource, VideoDecoderOutputViewDescription description)
 {
     CreateVideoDecoderOutputView(resource, ref description, out ID3D11VideoDecoderOutputView view).CheckError();
     return(view);
 }
Exemple #11
0
 public void CopyTiles(ID3D11Resource tiledResource, TiledResourceCoordinate tileRegionStartCoordinate, TileRegionSize tileRegionSize, ID3D11Buffer buffer, ulong bufferStartOffsetInBytes)
 {
     CopyTiles(tiledResource, tileRegionStartCoordinate, tileRegionSize, buffer, bufferStartOffsetInBytes, TileCopyFlags.None);
 }