Beispiel #1
0
        public virtual void CopyTileMappings(
            ID3D12Resource pDstResource,
            ref D3D12_TILED_RESOURCE_COORDINATE pDstRegionStartCoordinate,
            ID3D12Resource pSrcResource,
            ref D3D12_TILED_RESOURCE_COORDINATE pSrcRegionStartCoordinate,
            ref D3D12_TILE_REGION_SIZE pRegionSize,
            D3D12_TILE_MAPPING_FLAGS Flags
            )
        {
            var fp = GetFunctionPointer(9);

            if (m_CopyTileMappingsFunc == null)
            {
                m_CopyTileMappingsFunc = (CopyTileMappingsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CopyTileMappingsFunc));
            }

            m_CopyTileMappingsFunc(m_ptr, pDstResource != null ? pDstResource.Ptr : IntPtr.Zero, ref pDstRegionStartCoordinate, pSrcResource != null ? pSrcResource.Ptr : IntPtr.Zero, ref pSrcRegionStartCoordinate, ref pRegionSize, Flags);
        }
Beispiel #2
0
        public virtual void UpdateTileMappings(
            ID3D12Resource pResource,
            uint NumResourceRegions,
            ref D3D12_TILED_RESOURCE_COORDINATE pResourceRegionStartCoordinates,
            ref D3D12_TILE_REGION_SIZE pResourceRegionSizes,
            ID3D12Heap pHeap,
            uint NumRanges,
            ref D3D12_TILE_RANGE_FLAGS pRangeFlags,
            ref uint pHeapRangeStartOffsets,
            ref uint pRangeTileCounts,
            D3D12_TILE_MAPPING_FLAGS Flags
            )
        {
            var fp = GetFunctionPointer(8);

            if (m_UpdateTileMappingsFunc == null)
            {
                m_UpdateTileMappingsFunc = (UpdateTileMappingsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(UpdateTileMappingsFunc));
            }

            m_UpdateTileMappingsFunc(m_ptr, pResource != null ? pResource.Ptr : IntPtr.Zero, NumResourceRegions, ref pResourceRegionStartCoordinates, ref pResourceRegionSizes, pHeap != null ? pHeap.Ptr : IntPtr.Zero, NumRanges, ref pRangeFlags, ref pHeapRangeStartOffsets, ref pRangeTileCounts, Flags);
        }
Beispiel #3
0
 public void CopyTileMappings([NativeTypeName("ID3D12Resource *")] ID3D12Resource *pDstResource, [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] D3D12_TILED_RESOURCE_COORDINATE *pDstRegionStartCoordinate, [NativeTypeName("ID3D12Resource *")] ID3D12Resource *pSrcResource, [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] D3D12_TILED_RESOURCE_COORDINATE *pSrcRegionStartCoordinate, [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE *pRegionSize, D3D12_TILE_MAPPING_FLAGS Flags)
 {
     ((delegate * unmanaged <ID3D12CommandQueue *, ID3D12Resource *, D3D12_TILED_RESOURCE_COORDINATE *, ID3D12Resource *, D3D12_TILED_RESOURCE_COORDINATE *, D3D12_TILE_REGION_SIZE *, D3D12_TILE_MAPPING_FLAGS, void>)(lpVtbl[9]))((ID3D12CommandQueue *)Unsafe.AsPointer(ref this), pDstResource, pDstRegionStartCoordinate, pSrcResource, pSrcRegionStartCoordinate, pRegionSize, Flags);
 }
Beispiel #4
0
 public void UpdateTileMappings([NativeTypeName("ID3D12Resource *")] ID3D12Resource *pResource, [NativeTypeName("UINT")] uint NumResourceRegions, [NativeTypeName("const D3D12_TILED_RESOURCE_COORDINATE *")] D3D12_TILED_RESOURCE_COORDINATE *pResourceRegionStartCoordinates, [NativeTypeName("const D3D12_TILE_REGION_SIZE *")] D3D12_TILE_REGION_SIZE *pResourceRegionSizes, [NativeTypeName("ID3D12Heap *")] ID3D12Heap *pHeap, [NativeTypeName("UINT")] uint NumRanges, [NativeTypeName("const D3D12_TILE_RANGE_FLAGS *")] D3D12_TILE_RANGE_FLAGS *pRangeFlags, [NativeTypeName("const UINT *")] uint *pHeapRangeStartOffsets, [NativeTypeName("const UINT *")] uint *pRangeTileCounts, D3D12_TILE_MAPPING_FLAGS Flags)
 {
     ((delegate * unmanaged <ID3D12CommandQueue *, ID3D12Resource *, uint, D3D12_TILED_RESOURCE_COORDINATE *, D3D12_TILE_REGION_SIZE *, ID3D12Heap *, uint, D3D12_TILE_RANGE_FLAGS *, uint *, uint *, D3D12_TILE_MAPPING_FLAGS, void>)(lpVtbl[8]))((ID3D12CommandQueue *)Unsafe.AsPointer(ref this), pResource, NumResourceRegions, pResourceRegionStartCoordinates, pResourceRegionSizes, pHeap, NumRanges, pRangeFlags, pHeapRangeStartOffsets, pRangeTileCounts, Flags);
 }