3 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGL
6 using System.Runtime.InteropServices;
9 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGLES
10 using OpenTK.Graphics.ES30;
12 using OpenTK.Graphics.OpenGL;
15 namespace SiliconStudio.
Paradox.Graphics
22 protected internal Texture2D(GraphicsDevice device, TextureDescription description2D, DataBox[] dataBoxes = null,
bool initialize =
true) : base(device, description2D, TextureTarget.Texture2D, dataBoxes, initialize)
26 protected internal Texture2D(GraphicsDevice device, Texture2D texture) : base(device, texture)
30 public override Texture ToTexture(
ViewType viewType,
int arraySlice,
int mipMapSlice)
33 if (viewType !=
ViewType.Full || arraySlice != 0 || mipMapSlice != 0)
34 throw new NotImplementedException();
36 return new Texture2D(GraphicsDevice,
this);
39 public DepthStencilBuffer ToDepthStencilBuffer(
bool isReadOnly)
41 return new DepthStencilBuffer(GraphicsDevice,
this, isReadOnly);
44 public Texture2D ToDepthTextureCompatible()
46 throw new NotImplementedException();
ViewType
Defines how a view is selected from a resource.
Same as Deferred mode, except sprites are sorted by texture prior to drawing. This can improve perfor...
The texture dimension is 2D.