FeatureFlags

public struct FeatureFlags : OptionSet

Flags for the supported features.

  • The corresponding value of the raw type

    Declaration

    Swift

    public var rawValue: UInt32
  • The equivalent raw Int value

    Declaration

    Swift

    @inlinable
    public var intValue: Int { get set }
  • int

    The equivalent raw gint value

    Declaration

    Swift

    @inlinable
    public var int: gint { get set }
  • The equivalent underlying CoglFeatureFlags enum value

    Declaration

    Swift

    @inlinable
    public var value: CoglFeatureFlags { get set }
  • Creates a new instance with the specified raw value

    Declaration

    Swift

    @inlinable
    public init(rawValue: UInt32)
  • Creates a new instance with the specified CoglFeatureFlags enum value

    Declaration

    Swift

    @inlinable
    public init(_ enumValue: CoglFeatureFlags)
  • Creates a new instance with the specified Int value

    Declaration

    Swift

    @inlinable
    public init<I>(_ intValue: I) where I : BinaryInteger
  • ARB_texture_rectangle support

    Declaration

    Swift

    public static let textureRectangle: FeatureFlags
  • Non power of two textures are supported by the hardware. This is a equivalent to the COGL_FEATURE_TEXTURE_NPOT_BASIC, COGL_FEATURE_TEXTURE_NPOT_MIPMAP and COGL_FEATURE_TEXTURE_NPOT_REPEAT features combined.

    Declaration

    Swift

    public static let textureNpot: FeatureFlags
  • ycbcr conversion support

    Declaration

    Swift

    public static let textureYuv: FeatureFlags
  • glReadPixels() support

    Declaration

    Swift

    public static let textureReadPixels: FeatureFlags
  • GLSL support

    Declaration

    Swift

    public static let shadersGlsl: FeatureFlags
  • FBO support

    Declaration

    Swift

    public static let offscreen: FeatureFlags
  • Multisample support on FBOs

    Declaration

    Swift

    public static let offscreenMultisample: FeatureFlags
  • Blit support on FBOs

    Declaration

    Swift

    public static let offscreenBlit: FeatureFlags
  • At least 4 clip planes available

    Declaration

    Swift

    public static let fourClipPlanes: FeatureFlags
  • Stencil buffer support

    Declaration

    Swift

    public static let stencilBuffer: FeatureFlags
  • VBO support

    Declaration

    Swift

    public static let vbos: FeatureFlags
  • PBO support

    Declaration

    Swift

    public static let pbos: FeatureFlags
  • Set if COGL_INDICES_TYPE_UNSIGNED_INT is supported in cogl_vertex_buffer_indices_new().

    Declaration

    Swift

    public static let unsignedIntIndices: FeatureFlags
  • cogl_material_set_depth_range() support

    Declaration

    Swift

    public static let depthRange: FeatureFlags
  • The hardware supports non power of two textures, but you also need to check the COGL_FEATURE_TEXTURE_NPOT_MIPMAP and COGL_FEATURE_TEXTURE_NPOT_REPEAT features to know if the hardware supports npot texture mipmaps or repeat modes other than COGL_PIPELINE_WRAP_MODE_CLAMP_TO_EDGE respectively.

    Declaration

    Swift

    public static let textureNpotBasic: FeatureFlags
  • Mipmapping is supported in conjuntion with non power of two textures.

    Declaration

    Swift

    public static let textureNpotMipmap: FeatureFlags
  • Repeat modes other than COGL_PIPELINE_WRAP_MODE_CLAMP_TO_EDGE are supported by the hardware.

    Declaration

    Swift

    public static let textureNpotRepeat: FeatureFlags
  • Whether cogl_material_set_layer_point_sprite_coords_enabled() is supported.

    Declaration

    Swift

    public static let pointSprite: FeatureFlags
  • 3D texture support

    Declaration

    Swift

    public static let texture3d: FeatureFlags
  • ARBFP support

    Declaration

    Swift

    public static let shadersArbfp: FeatureFlags
  • Whether cogl_buffer_map() is supported with CoglBufferAccess including read support.

    Declaration

    Swift

    public static let mapBufferForRead: FeatureFlags
  • Whether cogl_buffer_map() is supported with CoglBufferAccess including write support.

    Declaration

    Swift

    public static let mapBufferForWrite: FeatureFlags
  • Undocumented

    Declaration

    Swift

    public static let onscreenMultiple: FeatureFlags
  • Whether CoglFramebuffer support rendering the depth buffer to a texture.

    Declaration

    Swift

    public static let depthTexture: FeatureFlags