Deprecated: use gitlab.freedesktop.org/emersion/go-kdf
package opengl
import "git.sr.ht/~emersion/go-kdf/opengl"
Index ¶
- Variables
- func GetDescriptor(format PixelFormat, typ PixelType, endianness kdf.Endianness) *kdf.Descriptor
- type PixelFormat
- type PixelType
Variables ¶
var PixelFormatTable map[string]PixelFormat = pixelFormatTable
Functions ¶
func GetDescriptor ¶
func GetDescriptor(format PixelFormat, typ PixelType, endianness kdf.Endianness) *kdf.Descriptor
Types ¶
type PixelFormat ¶
type PixelFormat uint16
const ( PixelFormatSTENCIL_INDEX PixelFormat = 0x1901 PixelFormatDEPTH_COMPONENT PixelFormat = 0x1902 PixelFormatRED PixelFormat = 0x1903 PixelFormatRGB PixelFormat = 0x1907 PixelFormatRGBA PixelFormat = 0x1908 PixelFormatBGR PixelFormat = 0x80E0 PixelFormatBGRA PixelFormat = 0x80E1 PixelFormatRG PixelFormat = 0x8227 PixelFormatDEPTH_STENCIL PixelFormat = 0x84F9 )
func (PixelFormat) String ¶
func (v PixelFormat) String() string
type PixelType ¶
type PixelType uint16
const ( PixelTypeBYTE PixelType = 0x1400 PixelTypeUNSIGNED_BYTE PixelType = 0x1401 PixelTypeSHORT PixelType = 0x1402 PixelTypeUNSIGNED_SHORT PixelType = 0x1403 PixelTypeINT PixelType = 0x1404 PixelTypeUNSIGNED_INT PixelType = 0x1405 PixelTypeFLOAT PixelType = 0x1406 PixelTypeHALF_FLOAT PixelType = 0x140B PixelTypeUNSIGNED_BYTE_3_3_2 PixelType = 0x8032 PixelTypeUNSIGNED_SHORT_4_4_4_4 PixelType = 0x8033 PixelTypeUNSIGNED_SHORT_5_5_5_1 PixelType = 0x8034 PixelTypeUNSIGNED_INT_8_8_8_8 PixelType = 0x8035 PixelTypeUNSIGNED_INT_10_10_10_2 PixelType = 0x8036 PixelTypeUNSIGNED_BYTE_2_3_3_REV PixelType = 0x8362 PixelTypeUNSIGNED_SHORT_5_6_5 PixelType = 0x8363 PixelTypeUNSIGNED_SHORT_5_6_5_REV PixelType = 0x8364 PixelTypeUNSIGNED_SHORT_4_4_4_4_REV PixelType = 0x8365 PixelTypeUNSIGNED_SHORT_1_5_5_5_REV PixelType = 0x8366 PixelTypeUNSIGNED_INT_8_8_8_8_REV PixelType = 0x8367 PixelTypeUNSIGNED_INT_2_10_10_10_REV PixelType = 0x8368 )
func (PixelType) String ¶
Source Files ¶
- Version
- v0.0.0-20240521102637-b6d8ec684be0 (latest)
- Published
- May 21, 2024
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 3 weeks ago –
Tools for package owners.