internal D3D12GraphicsTexture(GraphicsTextureKind kind, D3D12GraphicsHeap graphicsHeap, ulong offset, ulong size, ulong width, uint height, ushort depth) : base(kind, graphicsHeap, offset, size, width, height, depth) { _d3d12Resource = new ValueLazy <Pointer <ID3D12Resource> >(CreateD3D12Resource); _d3d12ResourceState = new ValueLazy <D3D12_RESOURCE_STATES>(GetD3D12ResourceState); _ = _state.Transition(to: Initialized); }
internal D3D12GraphicsBuffer(GraphicsBufferKind kind, D3D12GraphicsHeap graphicsHeap, ulong offset, ulong size, ulong stride) : base(kind, graphicsHeap, offset, size, stride) { _d3d12Resource = new ValueLazy <Pointer <ID3D12Resource> >(CreateD3D12Resource); _d3d12ResourceState = new ValueLazy <D3D12_RESOURCE_STATES>(GetD3D12ResourceState); _ = _state.Transition(to: Initialized); }