@gtkx/gl 0.21.0 → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,11 @@
1
1
  /**
2
- * GENERATED FILE do not edit.
3
- *
4
- * Emitted by the `@gtkx/codegen` Khronos generator from the vendored
5
- * `registry/gl.xml` (gl 4.6 core profile). Regenerate with
6
- * `pnpm --filter @gtkx/codegen codegen:gl`.
2
+ * GENERATED FILE: do not edit.
7
3
  */
8
- import type { Handle } from "@gtkx/native";
4
+ import { type ExternalObject, type Handle } from "@gtkx/native";
9
5
  /** An opaque `GLsync` fence handle. */
10
- export type GLsync = Handle;
6
+ export type GLsync = ExternalObject<Handle>;
11
7
  /** An opaque native pointer handle (e.g. a `glMapBufferRange` mapping). */
12
- export type GLpointer = Handle;
8
+ export type GLpointer = ExternalObject<Handle>;
13
9
  /** The C `GLenum` scalar. */
14
10
  export type GLenum = number;
15
11
  /** The C `GLbitfield` scalar. */
@@ -28,18 +24,10 @@ export type GLubyte = number;
28
24
  export type GLshort = number;
29
25
  /** The C `GLushort` scalar. */
30
26
  export type GLushort = number;
31
- /** The C `GLfixed` scalar. */
32
- export type GLfixed = number;
33
- /** The C `GLclampx` scalar. */
34
- export type GLclampx = number;
35
27
  /** The C `GLfloat` scalar. */
36
28
  export type GLfloat = number;
37
- /** The C `GLclampf` scalar. */
38
- export type GLclampf = number;
39
29
  /** The C `GLdouble` scalar. */
40
30
  export type GLdouble = number;
41
- /** The C `GLclampd` scalar. */
42
- export type GLclampd = number;
43
31
  /** The C `GLint64` scalar. */
44
32
  export type GLint64 = number;
45
33
  /** The C `GLuint64` scalar. */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/generated/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,uCAAuC;AACvC,MAAM,MAA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;AAClH,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC;AAE7C,2GAA2G;AAC3G,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEtC,2GAA2G;AAC3G,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEtC,4GAA4G;AAC5G,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC,4GAA4G;AAC5G,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC;AAEvC,kHAAkH;AAClH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,kHAAkH;AAClH,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAAC;AAE7C,2GAA2G;AAC3G,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC;AAEtC,8GAA8G;AAC9G,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC"}
@@ -1,9 +1,5 @@
1
1
  /**
2
- * GENERATED FILE do not edit.
3
- *
4
- * Emitted by the `@gtkx/codegen` Khronos generator from the vendored
5
- * `registry/gl.xml` (gl 4.6 core profile). Regenerate with
6
- * `pnpm --filter @gtkx/codegen codegen:gl`.
2
+ * GENERATED FILE: do not edit.
7
3
  */
8
- export {};
4
+ import {} from "@gtkx/native";
9
5
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/generated/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/generated/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAoC,MAAM,cAAc,CAAC","sourcesContent":["/**\n * GENERATED FILE: do not edit.\n */\n\nimport { type ExternalObject, type Handle } from \"@gtkx/native\";\n\n/** An opaque `GLsync` fence handle. */\nexport type GLsync = ExternalObject<Handle>;\n\n/** An opaque native pointer handle (e.g. a `glMapBufferRange` mapping). */\nexport type GLpointer = ExternalObject<Handle>;\n\n/** The C `GLenum` scalar. */\nexport type GLenum = number;\n\n/** The C `GLbitfield` scalar. */\nexport type GLbitfield = number;\n\n/** The C `GLuint` scalar. */\nexport type GLuint = number;\n\n/** The C `GLint` scalar. */\nexport type GLint = number;\n\n/** The C `GLsizei` scalar. */\nexport type GLsizei = number;\n\n/** The C `GLbyte` scalar. */\nexport type GLbyte = number;\n\n/** The C `GLubyte` scalar. */\nexport type GLubyte = number;\n\n/** The C `GLshort` scalar. */\nexport type GLshort = number;\n\n/** The C `GLushort` scalar. */\nexport type GLushort = number;\n\n/** The C `GLfloat` scalar. */\nexport type GLfloat = number;\n\n/** The C `GLdouble` scalar. */\nexport type GLdouble = number;\n\n/** The C `GLint64` scalar. */\nexport type GLint64 = number;\n\n/** The C `GLuint64` scalar. */\nexport type GLuint64 = number;\n\n/** The C `GLintptr` scalar. */\nexport type GLintptr = number;\n\n/** The C `GLsizeiptr` scalar. */\nexport type GLsizeiptr = number;\n\n/** Registry enum group `AttributeType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type AttributeType = GLenum;\n\n/** Registry enum group `BindTransformFeedbackTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BindTransformFeedbackTarget = GLenum;\n\n/** Registry enum group `BlendEquationModeEXT`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BlendEquationModeEXT = GLenum;\n\n/** Registry enum group `BlendingFactor`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BlendingFactor = GLenum;\n\n/** Registry enum group `BlitFramebufferFilter`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BlitFramebufferFilter = GLenum;\n\n/** Registry enum group `Buffer`; open and documentation-only, any `GLenum` value is accepted. */\nexport type Buffer = GLenum;\n\n/** Registry enum group `BufferAccessARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BufferAccessARB = GLenum;\n\n/** Registry enum group `BufferPNameARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BufferPNameARB = GLenum;\n\n/** Registry enum group `BufferStorageMask`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type BufferStorageMask = GLbitfield;\n\n/** Registry enum group `BufferStorageTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BufferStorageTarget = GLenum;\n\n/** Registry enum group `BufferTargetARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BufferTargetARB = GLenum;\n\n/** Registry enum group `BufferUsageARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type BufferUsageARB = GLenum;\n\n/** Registry enum group `ClampColorModeARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ClampColorModeARB = GLenum;\n\n/** Registry enum group `ClampColorTargetARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ClampColorTargetARB = GLenum;\n\n/** Registry enum group `ClearBufferMask`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type ClearBufferMask = GLbitfield;\n\n/** Registry enum group `ClipControlDepth`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ClipControlDepth = GLenum;\n\n/** Registry enum group `ClipControlOrigin`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ClipControlOrigin = GLenum;\n\n/** Registry enum group `ColorBuffer`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ColorBuffer = GLenum;\n\n/** Registry enum group `ConditionalRenderMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ConditionalRenderMode = GLenum;\n\n/** Registry enum group `CopyBufferSubDataTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type CopyBufferSubDataTarget = GLenum;\n\n/** Registry enum group `CopyImageSubDataTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type CopyImageSubDataTarget = GLenum;\n\n/** Registry enum group `DebugSeverity`; open and documentation-only, any `GLenum` value is accepted. */\nexport type DebugSeverity = GLenum;\n\n/** Registry enum group `DebugSource`; open and documentation-only, any `GLenum` value is accepted. */\nexport type DebugSource = GLenum;\n\n/** Registry enum group `DebugType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type DebugType = GLenum;\n\n/** Registry enum group `DepthFunction`; open and documentation-only, any `GLenum` value is accepted. */\nexport type DepthFunction = GLenum;\n\n/** Registry enum group `DrawBufferMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type DrawBufferMode = GLenum;\n\n/** Registry enum group `DrawElementsType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type DrawElementsType = GLenum;\n\n/** Registry enum group `EnableCap`; open and documentation-only, any `GLenum` value is accepted. */\nexport type EnableCap = GLenum;\n\n/** Registry enum group `ErrorCode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ErrorCode = GLenum;\n\n/** Registry enum group `FramebufferAttachment`; open and documentation-only, any `GLenum` value is accepted. */\nexport type FramebufferAttachment = GLenum;\n\n/** Registry enum group `FramebufferAttachmentParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type FramebufferAttachmentParameterName = GLenum;\n\n/** Registry enum group `FramebufferParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type FramebufferParameterName = GLenum;\n\n/** Registry enum group `FramebufferStatus`; open and documentation-only, any `GLenum` value is accepted. */\nexport type FramebufferStatus = GLenum;\n\n/** Registry enum group `FramebufferTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type FramebufferTarget = GLenum;\n\n/** Registry enum group `FrontFaceDirection`; open and documentation-only, any `GLenum` value is accepted. */\nexport type FrontFaceDirection = GLenum;\n\n/** Registry enum group `GetFramebufferParameter`; open and documentation-only, any `GLenum` value is accepted. */\nexport type GetFramebufferParameter = GLenum;\n\n/** Registry enum group `GetTextureParameter`; open and documentation-only, any `GLenum` value is accepted. */\nexport type GetTextureParameter = GLenum;\n\n/** Registry enum group `GraphicsResetStatus`; open and documentation-only, any `GLenum` value is accepted. */\nexport type GraphicsResetStatus = GLenum;\n\n/** Registry enum group `HintMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type HintMode = GLenum;\n\n/** Registry enum group `HintTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type HintTarget = GLenum;\n\n/** Registry enum group `InternalFormat`; open and documentation-only, any `GLenum` value is accepted. */\nexport type InternalFormat = GLenum;\n\n/** Registry enum group `InternalFormatPName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type InternalFormatPName = GLenum;\n\n/** Registry enum group `InvalidateFramebufferAttachment`; open and documentation-only, any `GLenum` value is accepted. */\nexport type InvalidateFramebufferAttachment = GLenum;\n\n/** Registry enum group `LogicOp`; open and documentation-only, any `GLenum` value is accepted. */\nexport type LogicOp = GLenum;\n\n/** Registry enum group `MapBufferAccessMask`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type MapBufferAccessMask = GLbitfield;\n\n/** Registry enum group `MemoryBarrierMask`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type MemoryBarrierMask = GLbitfield;\n\n/** Registry enum group `ObjectIdentifier`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ObjectIdentifier = GLenum;\n\n/** Registry enum group `PatchParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PatchParameterName = GLenum;\n\n/** Registry enum group `PipelineParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PipelineParameterName = GLenum;\n\n/** Registry enum group `PixelFormat`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PixelFormat = GLenum;\n\n/** Registry enum group `PixelStoreParameter`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PixelStoreParameter = GLenum;\n\n/** Registry enum group `PixelType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PixelType = GLenum;\n\n/** Registry enum group `PointParameterNameARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PointParameterNameARB = GLenum;\n\n/** Registry enum group `PolygonMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PolygonMode = GLenum;\n\n/** Registry enum group `PrecisionType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PrecisionType = GLenum;\n\n/** Registry enum group `PrimitiveType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type PrimitiveType = GLenum;\n\n/** Registry enum group `ProgramInterface`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ProgramInterface = GLenum;\n\n/** Registry enum group `ProgramParameterPName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ProgramParameterPName = GLenum;\n\n/** Registry enum group `ProgramPropertyARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ProgramPropertyARB = GLenum;\n\n/** Registry enum group `ProgramResourceProperty`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ProgramResourceProperty = GLenum;\n\n/** Registry enum group `ProgramStagePName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ProgramStagePName = GLenum;\n\n/** Registry enum group `QueryCounterTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type QueryCounterTarget = GLenum;\n\n/** Registry enum group `QueryObjectParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type QueryObjectParameterName = GLenum;\n\n/** Registry enum group `QueryParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type QueryParameterName = GLenum;\n\n/** Registry enum group `QueryTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type QueryTarget = GLenum;\n\n/** Registry enum group `ReadBufferMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ReadBufferMode = GLenum;\n\n/** Registry enum group `RenderbufferParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type RenderbufferParameterName = GLenum;\n\n/** Registry enum group `RenderbufferTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type RenderbufferTarget = GLenum;\n\n/** Registry enum group `SamplerParameterF`; open and documentation-only, any `GLenum` value is accepted. */\nexport type SamplerParameterF = GLenum;\n\n/** Registry enum group `SamplerParameterI`; open and documentation-only, any `GLenum` value is accepted. */\nexport type SamplerParameterI = GLenum;\n\n/** Registry enum group `ShaderBinaryFormat`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ShaderBinaryFormat = GLenum;\n\n/** Registry enum group `ShaderParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ShaderParameterName = GLenum;\n\n/** Registry enum group `ShaderType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type ShaderType = GLenum;\n\n/** Registry enum group `SizedInternalFormat`; open and documentation-only, any `GLenum` value is accepted. */\nexport type SizedInternalFormat = GLenum;\n\n/** Registry enum group `StencilFunction`; open and documentation-only, any `GLenum` value is accepted. */\nexport type StencilFunction = GLenum;\n\n/** Registry enum group `StencilOp`; open and documentation-only, any `GLenum` value is accepted. */\nexport type StencilOp = GLenum;\n\n/** Registry enum group `StringName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type StringName = GLenum;\n\n/** Registry enum group `SyncBehaviorFlags`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type SyncBehaviorFlags = GLbitfield;\n\n/** Registry enum group `SyncCondition`; open and documentation-only, any `GLenum` value is accepted. */\nexport type SyncCondition = GLenum;\n\n/** Registry enum group `SyncObjectMask`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type SyncObjectMask = GLbitfield;\n\n/** Registry enum group `SyncParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type SyncParameterName = GLenum;\n\n/** Registry enum group `SyncStatus`; open and documentation-only, any `GLenum` value is accepted. */\nexport type SyncStatus = GLenum;\n\n/** Registry enum group `TextureParameterName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type TextureParameterName = GLenum;\n\n/** Registry enum group `TextureTarget`; open and documentation-only, any `GLenum` value is accepted. */\nexport type TextureTarget = GLenum;\n\n/** Registry enum group `TextureUnit`; open and documentation-only, any `GLenum` value is accepted. */\nexport type TextureUnit = GLenum;\n\n/** Registry enum group `TransformFeedbackBufferMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type TransformFeedbackBufferMode = GLenum;\n\n/** Registry enum group `TransformFeedbackPName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type TransformFeedbackPName = GLenum;\n\n/** Registry enum group `TriangleFace`; open and documentation-only, any `GLenum` value is accepted. */\nexport type TriangleFace = GLenum;\n\n/** Registry enum group `UniformType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type UniformType = GLenum;\n\n/** Registry enum group `UseProgramStageMask`; open and documentation-only, any `GLbitfield` value is accepted. */\nexport type UseProgramStageMask = GLbitfield;\n\n/** Registry enum group `VertexArrayPName`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexArrayPName = GLenum;\n\n/** Registry enum group `VertexAttribEnum`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexAttribEnum = GLenum;\n\n/** Registry enum group `VertexAttribIType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexAttribIType = GLenum;\n\n/** Registry enum group `VertexAttribLType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexAttribLType = GLenum;\n\n/** Registry enum group `VertexAttribPointerType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexAttribPointerType = GLenum;\n\n/** Registry enum group `VertexAttribPropertyARB`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexAttribPropertyARB = GLenum;\n\n/** Registry enum group `VertexAttribType`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexAttribType = GLenum;\n\n/** Registry enum group `VertexProvokingMode`; open and documentation-only, any `GLenum` value is accepted. */\nexport type VertexProvokingMode = GLenum;\n"]}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./companion.js";
2
1
  export * from "./generated/commands.js";
3
2
  export * from "./generated/enums.js";
4
3
  export type * from "./generated/types.js";
4
+ export * from "./overrides.js";
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,mBAAmB,sBAAsB,CAAC;AAC1C,cAAc,gBAAgB,CAAC"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export * from "./companion.js";
2
1
  export * from "./generated/commands.js";
3
2
  export * from "./generated/enums.js";
3
+ export * from "./overrides.js";
4
4
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AAErC,cAAc,gBAAgB,CAAC","sourcesContent":["export * from \"./generated/commands.js\";\nexport * from \"./generated/enums.js\";\nexport type * from \"./generated/types.js\";\nexport * from \"./overrides.js\";\n"]}
@@ -0,0 +1,44 @@
1
+ import type { DebugSeverity, DebugSource, DebugType, GLsync, GLuint, SyncObjectMask, SyncStatus } from "./generated/types.js";
2
+ /**
3
+ * Reads the info log for a shader object, containing compilation diagnostics.
4
+ * @param shader The name of the shader object to query.
5
+ * @returns The shader info log, or an empty string when none is available.
6
+ */
7
+ export declare function getShaderInfoLog(shader: GLuint): string;
8
+ /**
9
+ * Reads the info log for a program object, containing linking diagnostics.
10
+ * @param program The name of the program object to query.
11
+ * @returns The program info log, or an empty string when none is available.
12
+ */
13
+ export declare function getProgramInfoLog(program: GLuint): string;
14
+ /**
15
+ * Reads the info log for a program pipeline object, containing validation diagnostics.
16
+ * @param pipeline The name of the program pipeline object to query.
17
+ * @returns The pipeline info log, or an empty string when none is available.
18
+ */
19
+ export declare function getProgramPipelineInfoLog(pipeline: GLuint): string;
20
+ /**
21
+ * Callback invoked for each GL debug message reported by the driver.
22
+ * @param source The origin of the message (API, window system, shader compiler, and so on).
23
+ * @param type The category of the message (error, deprecated behavior, performance, and so on).
24
+ * @param id The driver-assigned identifier of the message.
25
+ * @param severity The severity level of the message.
26
+ * @param message The human-readable message text.
27
+ */
28
+ export type DebugMessageCallback = (source: DebugSource, type: DebugType, id: GLuint, severity: DebugSeverity, message: string) => void;
29
+ /**
30
+ * Installs a callback that receives GL debug messages, enabling synchronous debug output.
31
+ * Passing null removes any previously installed callback.
32
+ * @param callback The handler to invoke for each debug message, or null to clear it.
33
+ */
34
+ export declare function debugMessageCallback(callback: DebugMessageCallback | null): void;
35
+ /**
36
+ * Blocks until a sync object is signaled or the timeout elapses, looping over glClientWaitSync
37
+ * in bounded chunks so long waits are not truncated by the driver's per-call limit.
38
+ * @param sync The sync object (fence) to wait on.
39
+ * @param flags Flags controlling the wait, such as flushing pending commands on the first call.
40
+ * @param timeoutNs The total time to wait, in nanoseconds.
41
+ * @returns The status of the sync object: signaled, condition satisfied, or timeout expired.
42
+ */
43
+ export declare function clientWaitSyncLoop(sync: GLsync, flags: SyncObjectMask, timeoutNs: number): SyncStatus;
44
+ //# sourceMappingURL=overrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../src/overrides.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACR,aAAa,EACb,WAAW,EACX,SAAS,EAGT,MAAM,EACN,MAAM,EACN,cAAc,EACd,UAAU,EACb,MAAM,sBAAsB,CAAC;AAkB9B;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAC/B,MAAM,EAAE,WAAW,EACnB,IAAI,EAAE,SAAS,EACf,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,MAAM,KACd,IAAI,CAAC;AAcV;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI,GAAG,IAAI,CAWhF;AAID;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,UAAU,CAYrG"}
@@ -1,7 +1,6 @@
1
- import { t } from "@gtkx/ffi";
2
- import { clientWaitSync, enable, getProgramiv, getProgramPipelineiv, getShaderiv } from "./generated/commands.js";
1
+ import { t } from "@gtkx/runtime";
2
+ import { clientWaitSync, enable, getProgramiv, getProgramPipelineiv, getShaderiv, LIB } from "./generated/commands.js";
3
3
  import { ALREADY_SIGNALED, CONDITION_SATISFIED, DEBUG_OUTPUT, DEBUG_OUTPUT_SYNCHRONOUS, INFO_LOG_LENGTH, TIMEOUT_EXPIRED, } from "./generated/enums.js";
4
- const LIB = "libGL.so.1";
5
4
  const readInfoLog = (symbol, id, query) => {
6
5
  const length = query(id, INFO_LOG_LENGTH);
7
6
  if (length <= 0)
@@ -11,12 +10,27 @@ const readInfoLog = (symbol, id, query) => {
11
10
  t.bind(LIB, symbol, [t.uint32, t.int32, t.ref(t.int32), t.ref(t.string("borrowed", length))], t.void)(id, length, written, log);
12
11
  return log.value;
13
12
  };
13
+ /**
14
+ * Reads the info log for a shader object, containing compilation diagnostics.
15
+ * @param shader The name of the shader object to query.
16
+ * @returns The shader info log, or an empty string when none is available.
17
+ */
14
18
  export function getShaderInfoLog(shader) {
15
19
  return readInfoLog("glGetShaderInfoLog", shader, getShaderiv);
16
20
  }
21
+ /**
22
+ * Reads the info log for a program object, containing linking diagnostics.
23
+ * @param program The name of the program object to query.
24
+ * @returns The program info log, or an empty string when none is available.
25
+ */
17
26
  export function getProgramInfoLog(program) {
18
27
  return readInfoLog("glGetProgramInfoLog", program, getProgramiv);
19
28
  }
29
+ /**
30
+ * Reads the info log for a program pipeline object, containing validation diagnostics.
31
+ * @param pipeline The name of the program pipeline object to query.
32
+ * @returns The pipeline info log, or an empty string when none is available.
33
+ */
20
34
  export function getProgramPipelineInfoLog(pipeline) {
21
35
  return readInfoLog("glGetProgramPipelineInfoLog", pipeline, getProgramPipelineiv);
22
36
  }
@@ -26,6 +40,11 @@ const glDebugMessageCallbackBinding = t.bind(LIB, "glDebugMessageCallback", [
26
40
  scope: "forever",
27
41
  }),
28
42
  ], t.void);
43
+ /**
44
+ * Installs a callback that receives GL debug messages, enabling synchronous debug output.
45
+ * Passing null removes any previously installed callback.
46
+ * @param callback The handler to invoke for each debug message, or null to clear it.
47
+ */
29
48
  export function debugMessageCallback(callback) {
30
49
  if (callback === null) {
31
50
  glDebugMessageCallbackBinding(null);
@@ -36,6 +55,14 @@ export function debugMessageCallback(callback) {
36
55
  glDebugMessageCallbackBinding((source, type, id, severity, _length, message) => callback(source, type, id, severity, message));
37
56
  }
38
57
  const MAX_WAIT_CHUNK_NS = 1_000_000_000;
58
+ /**
59
+ * Blocks until a sync object is signaled or the timeout elapses, looping over glClientWaitSync
60
+ * in bounded chunks so long waits are not truncated by the driver's per-call limit.
61
+ * @param sync The sync object (fence) to wait on.
62
+ * @param flags Flags controlling the wait, such as flushing pending commands on the first call.
63
+ * @param timeoutNs The total time to wait, in nanoseconds.
64
+ * @returns The status of the sync object: signaled, condition satisfied, or timeout expired.
65
+ */
39
66
  export function clientWaitSyncLoop(sync, flags, timeoutNs) {
40
67
  let remaining = timeoutNs;
41
68
  let currentFlags = flags;
@@ -52,4 +79,4 @@ export function clientWaitSyncLoop(sync, flags, timeoutNs) {
52
79
  currentFlags = 0;
53
80
  }
54
81
  }
55
- //# sourceMappingURL=companion.js.map
82
+ //# sourceMappingURL=overrides.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrides.js","sourceRoot":"","sources":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AAG,KAAK,CAAC;IACzB,SAAS,CAAC;QACN,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;QACrD,MAAM,MAAM,GAAG,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,CAAC,CAAC;QACzD,IAAI,MAAM,KAAK,gBAAgB,IAAI,MAAM,KAAK,mBAAmB;YAAE,OAAO,MAAM,CAAC;QACjF,IAAI,MAAM,KAAK,eAAe;YAAE,OAAO,MAAM,CAAC;QAC9C,SAAS,IAAI,KAAK,CAAC;QACnB,IAAI,SAAS,IAAI,CAAC;YAAE,OAAO,eAAe,CAAC;QAC3C,YAAY,GAAG,CAAC,CAAC;IACrB,CAAC;AACL,CAAC","sourcesContent":["import { t } from \"@gtkx/runtime\";\nimport { clientWaitSync, enable, getProgramiv, getProgramPipelineiv, getShaderiv, LIB } from \"./generated/commands.js\";\nimport {\n ALREADY_SIGNALED,\n CONDITION_SATISFIED,\n DEBUG_OUTPUT,\n DEBUG_OUTPUT_SYNCHRONOUS,\n INFO_LOG_LENGTH,\n TIMEOUT_EXPIRED,\n} from \"./generated/enums.js\";\nimport type {\n DebugSeverity,\n DebugSource,\n DebugType,\n GLenum,\n GLint,\n GLsync,\n GLuint,\n SyncObjectMask,\n SyncStatus,\n} from \"./generated/types.js\";\n\ntype LengthQuery = (id: GLuint, pname: GLenum) => GLint;\n\nconst readInfoLog = (symbol: string, id: GLuint, query: LengthQuery): string => {\n const length = query(id, INFO_LOG_LENGTH);\n if (length <= 0) return \"\";\n const written = { value: 0 };\n const log = { value: \"\" };\n t.bind(LIB, symbol, [t.uint32, t.int32, t.ref(t.int32), t.ref(t.string(\"borrowed\", length))], t.void)(\n id,\n length,\n written,\n log,\n );\n return log.value;\n};\n\n/**\n * Reads the info log for a shader object, containing compilation diagnostics.\n * @param shader The name of the shader object to query.\n * @returns The shader info log, or an empty string when none is available.\n */\nexport function getShaderInfoLog(shader: GLuint): string {\n return readInfoLog(\"glGetShaderInfoLog\", shader, getShaderiv);\n}\n\n/**\n * Reads the info log for a program object, containing linking diagnostics.\n * @param program The name of the program object to query.\n * @returns The program info log, or an empty string when none is available.\n */\nexport function getProgramInfoLog(program: GLuint): string {\n return readInfoLog(\"glGetProgramInfoLog\", program, getProgramiv);\n}\n\n/**\n * Reads the info log for a program pipeline object, containing validation diagnostics.\n * @param pipeline The name of the program pipeline object to query.\n * @returns The pipeline info log, or an empty string when none is available.\n */\nexport function getProgramPipelineInfoLog(pipeline: GLuint): string {\n return readInfoLog(\"glGetProgramPipelineInfoLog\", pipeline, getProgramPipelineiv);\n}\n\n/**\n * Callback invoked for each GL debug message reported by the driver.\n * @param source The origin of the message (API, window system, shader compiler, and so on).\n * @param type The category of the message (error, deprecated behavior, performance, and so on).\n * @param id The driver-assigned identifier of the message.\n * @param severity The severity level of the message.\n * @param message The human-readable message text.\n */\nexport type DebugMessageCallback = (\n source: DebugSource,\n type: DebugType,\n id: GLuint,\n severity: DebugSeverity,\n message: string,\n) => void;\n\nconst glDebugMessageCallbackBinding = t.bind(\n LIB,\n \"glDebugMessageCallback\",\n [\n t.callback([t.uint32, t.uint32, t.uint32, t.uint32, t.int32, t.string(\"borrowed\"), t.uint64], t.void, {\n userDataIndex: 6,\n scope: \"forever\",\n }),\n ],\n t.void,\n);\n\n/**\n * Installs a callback that receives GL debug messages, enabling synchronous debug output.\n * Passing null removes any previously installed callback.\n * @param callback The handler to invoke for each debug message, or null to clear it.\n */\nexport function debugMessageCallback(callback: DebugMessageCallback | null): void {\n if (callback === null) {\n glDebugMessageCallbackBinding(null);\n return;\n }\n enable(DEBUG_OUTPUT);\n enable(DEBUG_OUTPUT_SYNCHRONOUS);\n glDebugMessageCallbackBinding(\n (source: GLenum, type: GLenum, id: GLuint, severity: GLenum, _length: number, message: string) =>\n callback(source, type, id, severity, message),\n );\n}\n\nconst MAX_WAIT_CHUNK_NS = 1_000_000_000;\n\n/**\n * Blocks until a sync object is signaled or the timeout elapses, looping over glClientWaitSync\n * in bounded chunks so long waits are not truncated by the driver's per-call limit.\n * @param sync The sync object (fence) to wait on.\n * @param flags Flags controlling the wait, such as flushing pending commands on the first call.\n * @param timeoutNs The total time to wait, in nanoseconds.\n * @returns The status of the sync object: signaled, condition satisfied, or timeout expired.\n */\nexport function clientWaitSyncLoop(sync: GLsync, flags: SyncObjectMask, timeoutNs: number): SyncStatus {\n let remaining = timeoutNs;\n let currentFlags = flags;\n for (;;) {\n const chunk = Math.min(remaining, MAX_WAIT_CHUNK_NS);\n const status = clientWaitSync(sync, currentFlags, chunk);\n if (status === ALREADY_SIGNALED || status === CONDITION_SATISFIED) return status;\n if (status !== TIMEOUT_EXPIRED) return status;\n remaining -= chunk;\n if (remaining <= 0) return TIMEOUT_EXPIRED;\n currentFlags = 0;\n }\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gtkx/gl",
3
- "version": "0.21.0",
4
- "description": "Hand-written OpenGL bindings for GTKX GLArea rendering",
3
+ "version": "1.0.0-rc.1",
4
+ "description": "Generated OpenGL 4.6 core bindings plus override helpers for GTKX GLArea rendering",
5
5
  "keywords": [
6
6
  "gtkx",
7
7
  "gtk",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
21
- "url": "https://github.com/gtkx-org/gtkx.git",
21
+ "url": "git+https://github.com/gtkx-org/gtkx.git",
22
22
  "directory": "packages/gl"
23
23
  },
24
24
  "license": "MPL-2.0",
@@ -27,7 +27,6 @@
27
27
  "exports": {
28
28
  "./package.json": "./package.json",
29
29
  ".": {
30
- "source": "./src/index.ts",
31
30
  "types": "./dist/index.d.ts",
32
31
  "default": "./dist/index.js"
33
32
  }
@@ -37,14 +36,22 @@
37
36
  "dist",
38
37
  "src"
39
38
  ],
39
+ "engines": {
40
+ "node": ">=24"
41
+ },
40
42
  "dependencies": {
41
- "@gtkx/ffi": "0.21.0",
42
- "@gtkx/native": "0.21.0"
43
+ "@gtkx/runtime": "1.0.0-rc.1",
44
+ "@gtkx/native": "1.0.0-rc.1"
43
45
  },
44
46
  "devDependencies": {
45
- "@gtkx/vitest": "0.21.0"
47
+ "@types/node": "^26.1.1",
48
+ "@gtkx/codegen": "1.0.0-rc.1",
49
+ "@gtkx/utils": "1.0.0-rc.1"
46
50
  },
47
51
  "scripts": {
48
- "build": "tsc -b"
52
+ "build": "tsc -b tsconfig.lib.json",
53
+ "typecheck": "tsc -b --emitDeclarationOnly",
54
+ "codegen": "NODE_OPTIONS=--conditions=source tsx ./scripts/codegen.ts",
55
+ "release": "tsx ../../scripts/release-package.ts"
49
56
  }
50
57
  }