Class GLImageFormatExtensions
Namespace: ValveResourceFormat.Renderer
Assembly: Renderer.dll
Maps , the engine format vocabulary, to the OpenGL equivalents.
This makes the renderer unaware of graphics API specific formats, and we can later map these to anything else. The facts that hold for every API live on instead.
csharp
public static class GLImageFormatExtensionsInheritance
object ← GLImageFormatExtensions
Methods
ToGLPixelFormat(ImageFormat)
Returns the pixel format for uploads and readbacks. Not valid for block compressed formats.
csharp
public static PixelFormat ToGLPixelFormat(this ImageFormat format)Parameters
format ImageFormat
Returns
PixelFormat
ToGLPixelType(ImageFormat)
Returns the pixel component type for uploads and readbacks. Not valid for block compressed formats.
csharp
public static PixelType ToGLPixelType(this ImageFormat format)Parameters
format ImageFormat
Returns
PixelType
ToGLSizedInternalFormat(ImageFormat, bool)
Returns the sized internal format for texture storage.
csharp
public static SizedInternalFormat ToGLSizedInternalFormat(this ImageFormat format, bool srgb = false)Parameters
format ImageFormat
srgb bool
Returns
SizedInternalFormat

