public Texture1DArrayView(Texture1D resource, RenderTargetViewDescription.Texture1DArrayResource description) { _subresources = new Texture1D.Texture1DSubresource[description.ArraySize]; for (int i = description.FirstArraySlice; i < description.FirstArraySlice + description.ArraySize; i++) _subresources[i] = resource.GetSubresource(i, description.MipSlice); }
public Texture1DView(Texture1D resource, DepthStencilViewDescription.Texture1DResource description) { _subresource = resource.GetSubresource(0, description.MipSlice); }
public Texture1DView(Texture1D resource, RenderTargetViewDescription.Texture1DResource description) { _subresource = resource.GetSubresource(0, description.MipSlice); }