3 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGL
5 using SiliconStudio.Core;
6 using SiliconStudio.Core.ReferenceCounting;
7 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGLES
8 using OpenTK.Graphics.ES30;
10 using OpenTK.Graphics.OpenGL;
13 namespace SiliconStudio.
Paradox.Graphics
30 texture.AddReferenceInternal();
32 Description = texture.Description;
33 resourceId = texture.ResourceId;
35 Width = Math.Max(1, Description.Width >> mipSlice);
36 Height = Math.Max(1, Description.Height >> mipSlice);
39 ArraySlice = arraySlize;
41 ViewFormat = viewFormat == PixelFormat.None ? Description.Format : viewFormat;
45 protected internal override bool OnRecreate()
52 resourceId = Texture.ResourceId;
57 protected override void DestroyImpl()
59 Texture.ReleaseInternal();
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...
GraphicsResourceLifetimeState
Describes the lifetime state of a graphics resource.
Creates a render target buffer.
PixelFormat
Defines various types of pixel formats.