/// <summary> /// Initializes a new instance of the <see cref="Texture3DBase" /> class. /// </summary> /// <param name="device">The <see cref="GraphicsDevice"/>.</param> /// <param name="description3D">The description.</param> /// <param name="dataRectangles">A variable-length parameters list containing data rectangles.</param> /// <msdn-id>ff476522</msdn-id> /// <unmanaged>HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D)</unmanaged> /// <unmanaged-short>ID3D11Device::CreateTexture3D</unmanaged-short> protected internal Texture3DBase(GraphicsDevice device, Texture3DDescription description3D, DataBox[] dataRectangles) : base(device, description3D) { Resource = new Direct3D11.Texture3D(device, description3D, dataRectangles); Initialize(Resource); }
/// <summary> /// Specialised constructor for use only by derived classes. /// </summary> /// <param name="device">The device.</param> /// <param name="texture">The texture.</param> /// <msdn-id>ff476522</msdn-id> /// <unmanaged>HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D)</unmanaged> /// <unmanaged-short>ID3D11Device::CreateTexture3D</unmanaged-short> protected internal Texture3DBase(GraphicsDevice device, Direct3D11.Texture3D texture) : base(device, texture.Description) { Resource = texture; Initialize(Resource); }
/// <summary> /// Creates a new <see cref="RenderTarget3D"/> from a <see cref="Direct3D11.Texture3D"/>. /// </summary> /// <param name="device">The <see cref="GraphicsDevice"/>.</param> /// <param name="texture">The native texture <see cref="Direct3D11.Texture3D"/>.</param> /// <returns> /// A new instance of <see cref="RenderTarget3D"/> class. /// </returns> /// <msdn-id>ff476521</msdn-id> /// <unmanaged>HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D)</unmanaged> /// <unmanaged-short>ID3D11Device::CreateTexture3D</unmanaged-short> public static RenderTarget3D New(GraphicsDevice device, Direct3D11.Texture3D texture) { return(new RenderTarget3D(device, texture)); }
/// <summary>Specialised constructor for use only by derived classes.</summary> /// <param name="device">The device.</param> /// <param name="texture">The texture.</param> /// <msdn-id>ff476522</msdn-id> /// <unmanaged>HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D)</unmanaged> /// <unmanaged-short>ID3D11Device::CreateTexture3D</unmanaged-short> internal RenderTarget3D(GraphicsDevice device, Direct3D11.Texture3D texture) : base(device, texture) { }
/// <summary> /// Creates a new texture from a <see cref="Direct3D11.Texture3D"/>. /// </summary> /// <param name="device">The <see cref="GraphicsDevice"/>.</param> /// <param name="texture">The native texture <see cref="Direct3D11.Texture3D"/>.</param> /// <returns> /// A new instance of <see cref="Texture3D"/> class. /// </returns> /// <msdn-id>ff476522</msdn-id> /// <unmanaged>HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D)</unmanaged> /// <unmanaged-short>ID3D11Device::CreateTexture3D</unmanaged-short> public static Texture3D New(GraphicsDevice device, Direct3D11.Texture3D texture) { return(new Texture3D(device, texture)); }
/// <summary> /// Initializes a new instance of the <see cref="Texture3DBase" /> class. /// </summary> /// <param name="device">The <see cref="Direct3D11.Device"/>.</param> /// <param name="description3D">The description.</param> /// <msdn-id>ff476522</msdn-id> /// <unmanaged>HRESULT ID3D11Device::CreateTexture3D([In] const D3D11_TEXTURE3D_DESC* pDesc,[In, Buffer, Optional] const D3D11_SUBRESOURCE_DATA* pInitialData,[Out, Fast] ID3D11Texture3D** ppTexture3D)</unmanaged> /// <unmanaged-short>ID3D11Device::CreateTexture3D</unmanaged-short> protected internal Texture3DBase(Direct3D11.Device device, Texture3DDescription description3D) : base(device, description3D) { Resource = new Direct3D11.Texture3D(device, description3D); Initialize(Resource); }
internal Texture3D(Device device, Direct3D11.Texture3D texture) : base(device, texture) { }