mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 05:08:14 +00:00
Merge tag 'dev-2025-09'
This commit is contained in:
Vendored
+1
-1
@@ -880,7 +880,7 @@ when !GL_DEBUG {
|
||||
|
||||
// VERSION_1_2
|
||||
DrawRangeElements :: proc "c" (mode, start, end: u32, count: i32, type: u32, indices: rawptr, loc := #caller_location) { impl_DrawRangeElements(mode, start, end, count, type, indices); debug_helper(loc, 0, mode, start, end, count, type, indices) }
|
||||
TexImage3D :: proc "c" (target: u32, level, internalformat, width, height, depth, border: i32, format, type: u32, pixels: rawptr, loc := #caller_location) { impl_TexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels); debug_helper(loc, 0, target, level, internalformat, width, height, depth, border, format, type, pixels) }
|
||||
TexImage3D :: proc "c" (target: u32, level, internalformat, width, height, depth, border: i32, format, type: u32, data: rawptr, loc := #caller_location) { impl_TexImage3D(target, level, internalformat, width, height, depth, border, format, type, data); debug_helper(loc, 0, target, level, internalformat, width, height, depth, border, format, type, data) }
|
||||
TexSubImage3D :: proc "c" (target: u32, level, xoffset, yoffset, zoffset, width, height, depth: i32, format, type: u32, pixels: rawptr, loc := #caller_location) { impl_TexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels); debug_helper(loc, 0, target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels) }
|
||||
CopyTexSubImage3D :: proc "c" (target: u32, level, xoffset, yoffset, zoffset, x, y, width, height: i32, loc := #caller_location) { impl_CopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); debug_helper(loc, 0, target, level, xoffset, yoffset, zoffset, x, y, width, height) }
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1370,7 +1370,7 @@ foreign lib {
|
||||
|
||||
// Create a motor joint
|
||||
// @see b2MotorJointDef for details
|
||||
CreateMotorJoint :: proc(worldId: WorldId, def: MotorJointDef) -> JointId ---
|
||||
CreateMotorJoint :: proc(worldId: WorldId, #by_ptr def: MotorJointDef) -> JointId ---
|
||||
|
||||
// Set the motor joint linear offset target
|
||||
MotorJoint_SetLinearOffset :: proc(jointId: JointId, linearOffset: Vec2) ---
|
||||
|
||||
+287
-86
@@ -2767,6 +2767,14 @@ RenderPipelineDescriptor_fragmentBuffers :: #force_inline proc "c" (self: ^Rende
|
||||
RenderPipelineDescriptor_fragmentFunction :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^Function {
|
||||
return msgSend(^Function, self, "fragmentFunction")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="vertexLinkedFunctions")
|
||||
RenderPipelineDescriptor_vertexLinkedFunctions :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^LinkedFunctions {
|
||||
return msgSend(^LinkedFunctions, self, "vertexLinkedFunctions")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="fragmentLinkedFunctions")
|
||||
RenderPipelineDescriptor_fragmentLinkedFunctions :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^LinkedFunctions {
|
||||
return msgSend(^LinkedFunctions, self, "fragmentLinkedFunctions")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="inputPrimitiveTopology")
|
||||
RenderPipelineDescriptor_inputPrimitiveTopology :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> PrimitiveTopologyClass {
|
||||
return msgSend(PrimitiveTopologyClass, self, "inputPrimitiveTopology")
|
||||
@@ -2831,6 +2839,14 @@ RenderPipelineDescriptor_setDepthAttachmentPixelFormat :: #force_inline proc "c"
|
||||
RenderPipelineDescriptor_setFragmentFunction :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, fragmentFunction: ^Function) {
|
||||
msgSend(nil, self, "setFragmentFunction:", fragmentFunction)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setVertexLinkedFunctions")
|
||||
RenderPipelineDescriptor_setVertexLinkedFunctions :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, vertexLinkedFunctions: ^LinkedFunctions) {
|
||||
msgSend(nil, self, "setVertexLinkedFunctions:", vertexLinkedFunctions)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setFragmentLinkedFunctions")
|
||||
RenderPipelineDescriptor_setFragmentLinkedFunctions :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, fragmentLinkedFunctions: ^LinkedFunctions) {
|
||||
msgSend(nil, self, "setFragmentLinkedFunctions:", fragmentLinkedFunctions)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setInputPrimitiveTopology")
|
||||
RenderPipelineDescriptor_setInputPrimitiveTopology :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, inputPrimitiveTopology: PrimitiveTopologyClass) {
|
||||
msgSend(nil, self, "setInputPrimitiveTopology:", inputPrimitiveTopology)
|
||||
@@ -2940,86 +2956,6 @@ RenderPipelineDescriptor_vertexFunction :: #force_inline proc "c" (self: ^Render
|
||||
return msgSend(^Function, self, "vertexFunction")
|
||||
}
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="objectFunction")
|
||||
RenderPipelineDescriptor_objectFunction :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^Function {
|
||||
return msgSend(^Function, self, "objectFunction")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setObjectFunction")
|
||||
RenderPipelineDescriptor_setObjectFunction :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, objectFunction: ^Function) {
|
||||
msgSend(nil, self, "setObjectFunction:", objectFunction)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="meshFunction")
|
||||
RenderPipelineDescriptor_meshFunction :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^Function {
|
||||
return msgSend(^Function, self, "meshFunction")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setMeshFunction")
|
||||
RenderPipelineDescriptor_setMeshFunction :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, meshFunction: ^Function) {
|
||||
msgSend(nil, self, "setMeshFunction:", meshFunction)
|
||||
}
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="maxTotalThreadsPerObjectThreadgroup")
|
||||
RenderPipelineDescriptor_maxTotalThreadsPerObjectThreadgroup :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxTotalThreadsPerObjectThreadgroup")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setMaxTotalThreadsPerObjectThreadgroup")
|
||||
RenderPipelineDescriptor_setMaxTotalThreadsPerObjectThreadgroup :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, maxTotalThreadsPerObjectThreadgroup: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxTotalThreadsPerObjectThreadgroup:", maxTotalThreadsPerObjectThreadgroup)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="maxTotalThreadsPerMeshThreadgroup")
|
||||
RenderPipelineDescriptor_maxTotalThreadsPerMeshThreadgroup :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxTotalThreadsPerMeshThreadgroup")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setMaxTotalThreadsPerMeshThreadgroup")
|
||||
RenderPipelineDescriptor_setMaxTotalThreadsPerMeshThreadgroup :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, maxTotalThreadsPerMeshThreadgroup: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxTotalThreadsPerMeshThreadgroup:", maxTotalThreadsPerMeshThreadgroup)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="objectThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
RenderPipelineDescriptor_objectThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "objectThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
RenderPipelineDescriptor_setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, objectThreadgroupSizeIsMultipleOfThreadExecutionWidth: NS.UInteger) {
|
||||
msgSend(nil, self, "setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth:", objectThreadgroupSizeIsMultipleOfThreadExecutionWidth)
|
||||
}
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="meshThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
RenderPipelineDescriptor_meshThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "meshThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
RenderPipelineDescriptor_setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, meshThreadgroupSizeIsMultipleOfThreadExecutionWidth: BOOL) {
|
||||
msgSend(nil, self, "setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth:", meshThreadgroupSizeIsMultipleOfThreadExecutionWidth)
|
||||
}
|
||||
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="payloadMemoryLength")
|
||||
RenderPipelineDescriptor_payloadMemoryLength :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "payloadMemoryLength")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setPayloadMemoryLength")
|
||||
RenderPipelineDescriptor_setPayloadMemoryLength :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, payloadMemoryLength: NS.UInteger) {
|
||||
msgSend(nil, self, "setPayloadMemoryLength:", payloadMemoryLength)
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="maxTotalThreadgroupsPerMeshGrid")
|
||||
RenderPipelineDescriptor_maxTotalThreadgroupsPerMeshGrid :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxTotalThreadgroupsPerMeshGrid")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setMaxTotalThreadgroupsPerMeshGrid")
|
||||
RenderPipelineDescriptor_setMaxTotalThreadgroupsPerMeshGrid :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, maxTotalThreadgroupsPerMeshGrid: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxTotalThreadgroupsPerMeshGrid:", maxTotalThreadgroupsPerMeshGrid)
|
||||
}
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="objectBuffers")
|
||||
RenderPipelineDescriptor_objectBuffers :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^PipelineBufferDescriptorArray {
|
||||
return msgSend(^PipelineBufferDescriptorArray, self, "objectBuffers")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="meshBuffers")
|
||||
RenderPipelineDescriptor_meshBuffers :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ^PipelineBufferDescriptorArray {
|
||||
return msgSend(^PipelineBufferDescriptorArray, self, "meshBuffers")
|
||||
}
|
||||
|
||||
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="alphaToCoverageEnabled")
|
||||
RenderPipelineDescriptor_alphaToCoverageEnabled :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "alphaToCoverageEnabled")
|
||||
@@ -3034,6 +2970,272 @@ RenderPipelineDescriptor_rasterizationEnabled :: #force_inline proc "c" (self: ^
|
||||
return msgSend(BOOL, self, "rasterizationEnabled")
|
||||
}
|
||||
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="shaderValidation")
|
||||
RenderPipelineDescriptor_shaderValidation :: #force_inline proc "c" (self: ^RenderPipelineDescriptor) -> ShaderValidation {
|
||||
return msgSend(ShaderValidation, self, "shaderValidation")
|
||||
}
|
||||
@(objc_type=RenderPipelineDescriptor, objc_name="setShaderValidation")
|
||||
RenderPipelineDescriptor_setShaderValidation :: #force_inline proc "c" (self: ^RenderPipelineDescriptor, shaderValidation: ShaderValidation) {
|
||||
msgSend(nil, self, "setShaderValidation:", shaderValidation)
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@(objc_class="MTLMeshRenderPipelineDescriptor")
|
||||
MeshRenderPipelineDescriptor :: struct{ using _: NS.Copying(MeshRenderPipelineDescriptor) }
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="alloc", objc_is_class_method=true)
|
||||
MeshRenderPipelineDescriptor_alloc :: #force_inline proc "c" () -> ^MeshRenderPipelineDescriptor {
|
||||
return msgSend(^MeshRenderPipelineDescriptor, MeshRenderPipelineDescriptor, "alloc")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="init")
|
||||
MeshRenderPipelineDescriptor_init :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^MeshRenderPipelineDescriptor {
|
||||
return msgSend(^MeshRenderPipelineDescriptor, self, "init")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="binaryArchives")
|
||||
MeshRenderPipelineDescriptor_binaryArchives :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^NS.Array {
|
||||
return msgSend(^NS.Array, self, "binaryArchives")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setBinaryArchives")
|
||||
MeshRenderPipelineDescriptor_setBinaryArchives :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, binaryArchives: ^NS.Array) {
|
||||
msgSend(nil, self, "setBinaryArchives:", binaryArchives)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="colorAttachments")
|
||||
MeshRenderPipelineDescriptor_colorAttachments :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^RenderPipelineColorAttachmentDescriptorArray {
|
||||
return msgSend(^RenderPipelineColorAttachmentDescriptorArray, self, "colorAttachments")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="depthAttachmentPixelFormat")
|
||||
MeshRenderPipelineDescriptor_depthAttachmentPixelFormat :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> PixelFormat {
|
||||
return msgSend(PixelFormat, self, "depthAttachmentPixelFormat")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setDepthAttachmentPixelFormat")
|
||||
MeshRenderPipelineDescriptor_setDepthAttachmentPixelFormat :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, depthAttachmentPixelFormat: PixelFormat) {
|
||||
msgSend(nil, self, "setDepthAttachmentPixelFormat:", depthAttachmentPixelFormat)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="fragmentBuffers")
|
||||
MeshRenderPipelineDescriptor_fragmentBuffers :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^PipelineBufferDescriptorArray {
|
||||
return msgSend(^PipelineBufferDescriptorArray, self, "fragmentBuffers")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="fragmentFunction")
|
||||
MeshRenderPipelineDescriptor_fragmentFunction :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^Function {
|
||||
return msgSend(^Function, self, "fragmentFunction")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setFragmentFunction")
|
||||
MeshRenderPipelineDescriptor_setFragmentFunction :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, fragmentFunction: ^Function) {
|
||||
msgSend(nil, self, "setFragmentFunction:", fragmentFunction)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="fragmentLinkedFunctions")
|
||||
MeshRenderPipelineDescriptor_fragmentLinkedFunctions :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^LinkedFunctions {
|
||||
return msgSend(^LinkedFunctions, self, "fragmentLinkedFunctions")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setFragmentLinkedFunctions")
|
||||
MeshRenderPipelineDescriptor_setFragmentLinkedFunctions :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, fragmentLinkedFunctions: ^LinkedFunctions) {
|
||||
msgSend(nil, self, "setFragmentLinkedFunctions:", fragmentLinkedFunctions)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="alphaToCoverageEnabled")
|
||||
MeshRenderPipelineDescriptor_alphaToCoverageEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "alphaToCoverageEnabled")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="isAlphaToCoverageEnabled")
|
||||
MeshRenderPipelineDescriptor_isAlphaToCoverageEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "isAlphaToCoverageEnabled")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setAlphaToCoverageEnabled")
|
||||
MeshRenderPipelineDescriptor_setAlphaToCoverageEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, alphaToCoverageEnabled: BOOL) {
|
||||
msgSend(nil, self, "setAlphaToCoverageEnabled:", alphaToCoverageEnabled)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="alphaToOneEnabled")
|
||||
MeshRenderPipelineDescriptor_alphaToOneEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "alphaToOneEnabled")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="isAlphaToOneEnabled")
|
||||
MeshRenderPipelineDescriptor_isAlphaToOneEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "isAlphaToOneEnabled")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setAlphaToOneEnabled")
|
||||
MeshRenderPipelineDescriptor_setAlphaToOneEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, alphaToOneEnabled: BOOL) {
|
||||
msgSend(nil, self, "setAlphaToOneEnabled:", alphaToOneEnabled)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="rasterizationEnabled")
|
||||
MeshRenderPipelineDescriptor_rasterizationEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "rasterizationEnabled")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="isRasterizationEnabled")
|
||||
MeshRenderPipelineDescriptor_isRasterizationEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "isRasterizationEnabled")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setRasterizationEnabled")
|
||||
MeshRenderPipelineDescriptor_setRasterizationEnabled :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, rasterizationEnabled: BOOL) {
|
||||
msgSend(nil, self, "setRasterizationEnabled:", rasterizationEnabled)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="label")
|
||||
MeshRenderPipelineDescriptor_label :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^NS.String {
|
||||
return msgSend(^NS.String, self, "label")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="maxTotalThreadgroupsPerMeshGrid")
|
||||
MeshRenderPipelineDescriptor_maxTotalThreadgroupsPerMeshGrid :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxTotalThreadgroupsPerMeshGrid")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMaxTotalThreadgroupsPerMeshGrid")
|
||||
MeshRenderPipelineDescriptor_setMaxTotalThreadgroupsPerMeshGrid :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, maxTotalThreadgroupsPerMeshGrid: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxTotalThreadgroupsPerMeshGrid:", maxTotalThreadgroupsPerMeshGrid)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="maxTotalThreadsPerMeshThreadgroup")
|
||||
MeshRenderPipelineDescriptor_maxTotalThreadsPerMeshThreadgroup :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxTotalThreadsPerMeshThreadgroup")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMaxTotalThreadsPerMeshThreadgroup")
|
||||
MeshRenderPipelineDescriptor_setMaxTotalThreadsPerMeshThreadgroup :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, maxTotalThreadsPerMeshThreadgroup: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxTotalThreadsPerMeshThreadgroup:", maxTotalThreadsPerMeshThreadgroup)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="maxTotalThreadsPerObjectThreadgroup")
|
||||
MeshRenderPipelineDescriptor_maxTotalThreadsPerObjectThreadgroup :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxTotalThreadsPerObjectThreadgroup")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMaxTotalThreadsPerObjectThreadgroup")
|
||||
MeshRenderPipelineDescriptor_setMaxTotalThreadsPerObjectThreadgroup :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, maxTotalThreadsPerObjectThreadgroup: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxTotalThreadsPerObjectThreadgroup:", maxTotalThreadsPerObjectThreadgroup)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="maxVertexAmplificationCount")
|
||||
MeshRenderPipelineDescriptor_maxVertexAmplificationCount :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "maxVertexAmplificationCount")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMaxVertexAmplificationCount")
|
||||
MeshRenderPipelineDescriptor_setMaxVertexAmplificationCount :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, maxVertexAmplificationCount: NS.UInteger) {
|
||||
msgSend(nil, self, "setMaxVertexAmplificationCount:", maxVertexAmplificationCount)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="meshBuffers")
|
||||
MeshRenderPipelineDescriptor_meshBuffers :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^PipelineBufferDescriptorArray {
|
||||
return msgSend(^PipelineBufferDescriptorArray, self, "meshBuffers")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="meshFunction")
|
||||
MeshRenderPipelineDescriptor_meshFunction :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^Function {
|
||||
return msgSend(^Function, self, "meshFunction")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMeshFunction")
|
||||
MeshRenderPipelineDescriptor_setMeshFunction :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, meshFunction: ^Function) {
|
||||
msgSend(nil, self, "setMeshFunction:", meshFunction)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="meshLinkedFunctions")
|
||||
MeshRenderPipelineDescriptor_meshLinkedFunctions :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^LinkedFunctions {
|
||||
return msgSend(^LinkedFunctions, self, "meshLinkedFunctions")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMeshLinkedFunctions")
|
||||
MeshRenderPipelineDescriptor_setMeshLinkedFunctions :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, meshLinkedFunctions: ^LinkedFunctions) {
|
||||
msgSend(nil, self, "setMeshLinkedFunctions:", meshLinkedFunctions)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="meshThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
MeshRenderPipelineDescriptor_meshThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "meshThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
MeshRenderPipelineDescriptor_setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, meshThreadgroupSizeIsMultipleOfThreadExecutionWidth: BOOL) {
|
||||
msgSend(nil, self, "setMeshThreadgroupSizeIsMultipleOfThreadExecutionWidth:", meshThreadgroupSizeIsMultipleOfThreadExecutionWidth)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="objectBuffers")
|
||||
MeshRenderPipelineDescriptor_objectBuffers :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^PipelineBufferDescriptorArray {
|
||||
return msgSend(^PipelineBufferDescriptorArray, self, "objectBuffers")
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="objectFunction")
|
||||
MeshRenderPipelineDescriptor_objectFunction :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^Function {
|
||||
return msgSend(^Function, self, "objectFunction")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setObjectFunction")
|
||||
MeshRenderPipelineDescriptor_setObjectFunction :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, objectFunction: ^Function) {
|
||||
msgSend(nil, self, "setObjectFunction:", objectFunction)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="objectLinkedFunctions")
|
||||
MeshRenderPipelineDescriptor_objectLinkedFunctions :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ^LinkedFunctions {
|
||||
return msgSend(^LinkedFunctions, self, "objectLinkedFunctions")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setObjectLinkedFunctions")
|
||||
MeshRenderPipelineDescriptor_setObjectLinkedFunctions :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, objectLinkedFunctions: ^LinkedFunctions) {
|
||||
msgSend(nil, self, "setObjectLinkedFunctions:", objectLinkedFunctions)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="objectThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
MeshRenderPipelineDescriptor_objectThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "objectThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth")
|
||||
MeshRenderPipelineDescriptor_setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, objectThreadgroupSizeIsMultipleOfThreadExecutionWidth: BOOL) {
|
||||
msgSend(nil, self, "setObjectThreadgroupSizeIsMultipleOfThreadExecutionWidth:", objectThreadgroupSizeIsMultipleOfThreadExecutionWidth)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="payloadMemoryLength")
|
||||
MeshRenderPipelineDescriptor_payloadMemoryLength :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "payloadMemoryLength")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setPayloadMemoryLength")
|
||||
MeshRenderPipelineDescriptor_setPayloadMemoryLength :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, payloadMemoryLength: NS.UInteger) {
|
||||
msgSend(nil, self, "setPayloadMemoryLength:", payloadMemoryLength)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="rasterSampleCount")
|
||||
MeshRenderPipelineDescriptor_rasterSampleCount :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> NS.UInteger {
|
||||
return msgSend(NS.UInteger, self, "rasterSampleCount")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setRasterSampleCount")
|
||||
MeshRenderPipelineDescriptor_setRasterSampleCount :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, rasterSampleCount: NS.UInteger) {
|
||||
msgSend(nil, self, "setRasterSampleCount:", rasterSampleCount)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="shaderValidation")
|
||||
MeshRenderPipelineDescriptor_shaderValidation :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> ShaderValidation {
|
||||
return msgSend(ShaderValidation, self, "shaderValidation")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setShaderValidation")
|
||||
MeshRenderPipelineDescriptor_setShaderValidation :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, shaderValidation: ShaderValidation) {
|
||||
msgSend(nil, self, "setShaderValidation:", shaderValidation)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="stencilAttachmentPixelFormat")
|
||||
MeshRenderPipelineDescriptor_stencilAttachmentPixelFormat :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> PixelFormat {
|
||||
return msgSend(PixelFormat, self, "stencilAttachmentPixelFormat")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setStencilAttachmentPixelFormat")
|
||||
MeshRenderPipelineDescriptor_setStencilAttachmentPixelFormat :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, stencilAttachmentPixelFormat: PixelFormat) {
|
||||
msgSend(nil, self, "setStencilAttachmentPixelFormat:", stencilAttachmentPixelFormat)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="supportIndirectCommandBuffers")
|
||||
MeshRenderPipelineDescriptor_supportIndirectCommandBuffers :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) -> BOOL {
|
||||
return msgSend(BOOL, self, "supportIndirectCommandBuffers")
|
||||
}
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="setSupportIndirectCommandBuffers")
|
||||
MeshRenderPipelineDescriptor_setSupportIndirectCommandBuffers :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor, supportIndirectCommandBuffers: BOOL) {
|
||||
msgSend(nil, self, "setSupportIndirectCommandBuffers:", supportIndirectCommandBuffers)
|
||||
}
|
||||
|
||||
@(objc_type=MeshRenderPipelineDescriptor, objc_name="reset")
|
||||
MeshRenderPipelineDescriptor_reset :: #force_inline proc "c" (self: ^MeshRenderPipelineDescriptor) {
|
||||
msgSend(nil, self, "reset")
|
||||
}
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -5379,7 +5581,7 @@ Device_newBufferWithSlice :: #force_inline proc "c" (self: ^Device, slice: $S/[]
|
||||
}
|
||||
@(objc_type=Device, objc_name="newBufferWithSliceNoCopy")
|
||||
Device_newBufferWithSliceNoCopy :: #force_inline proc "c" (self: ^Device, slice: $S/[]$E, options: ResourceOptions, deallocator: rawptr) -> ^Buffer {
|
||||
return Device_newBufferWithBytesNotCopy(self, mem.slice_to_bytes(slice), options, deallocator)
|
||||
return Device_newBufferWithBytesNoCopy(self, mem.slice_to_bytes(slice), options, deallocator)
|
||||
}
|
||||
@(objc_type=Device, objc_name="newBufferWithLength")
|
||||
Device_newBufferWithLength :: #force_inline proc "c" (self: ^Device, length: NS.UInteger, options: ResourceOptions) -> ^Buffer {
|
||||
@@ -5702,14 +5904,13 @@ Device_supportsVertexAmplificationCount :: #force_inline proc "c" (self: ^Device
|
||||
|
||||
|
||||
@(objc_type=Device, objc_name="newRenderPipelineStateWithMeshDescriptor")
|
||||
Device_newRenderPipelineStateWithMeshDescriptor :: #force_inline proc "contextless" (self: ^Device, options: PipelineOption, reflection: ^AutoreleasedRenderPipelineReflection) -> (state: ^RenderPipelineState, error: ^NS.Error) {
|
||||
state = msgSend(^RenderPipelineState, self, "newRenderPipelineStateWithMeshDescriptor:options:reflection:error:", options, reflection, &error)
|
||||
Device_newRenderPipelineStateWithMeshDescriptor :: #force_inline proc "c" (self: ^Device, descriptor: ^MeshRenderPipelineDescriptor, options: PipelineOption, reflection: ^AutoreleasedRenderPipelineReflection) -> (state: ^RenderPipelineState, error: ^NS.Error) {
|
||||
state = msgSend(^RenderPipelineState, self, "newRenderPipelineStateWithMeshDescriptor:options:reflection:error:", descriptor, options, reflection, &error)
|
||||
return
|
||||
}
|
||||
@(objc_type=Device, objc_name="newRenderPipelineStateWithMeshDescriptorAndCompletionHandler")
|
||||
Device_newRenderPipelineStateWithMeshDescriptorAndCompletionHandler :: #force_inline proc "c" (self: ^Device, options: PipelineOption, completionHandler: ^NewRenderPipelineStateWithReflectionCompletionHandler) -> (state: ^RenderPipelineState) {
|
||||
state = msgSend(^RenderPipelineState, self, "newRenderPipelineStateWithMeshDescriptor:options:completionHandler:", options, completionHandler)
|
||||
return
|
||||
Device_newRenderPipelineStateWithMeshDescriptorAndCompletionHandler :: #force_inline proc "c" (self: ^Device, descriptor: ^MeshRenderPipelineDescriptor, options: PipelineOption, completionHandler: NewRenderPipelineStateWithReflectionCompletionHandler) {
|
||||
msgSend(nil, self, "newRenderPipelineStateWithMeshDescriptor:options:completionHandler:", descriptor, options, completionHandler)
|
||||
}
|
||||
|
||||
@(objc_type=Device, objc_name="newIOHandle")
|
||||
|
||||
Vendored
+6
@@ -1050,3 +1050,9 @@ VertexStepFunction :: enum NS.UInteger {
|
||||
PerPatch = 3,
|
||||
PerPatchControlPoint = 4,
|
||||
}
|
||||
|
||||
ShaderValidation :: enum NS.UInteger {
|
||||
Default = 0,
|
||||
Enabled = 1,
|
||||
Disabled = 2,
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -19,7 +19,7 @@ BOOL :: dxgi.BOOL
|
||||
UINT :: dxgi.UINT
|
||||
INT :: dxgi.INT
|
||||
|
||||
LPCWSTR :: [^]u16
|
||||
LPCWSTR :: windows.LPCWSTR
|
||||
|
||||
RECT :: dxgi.RECT
|
||||
SIZE :: dxgi.SIZE
|
||||
|
||||
Vendored
+24
-22
@@ -22,6 +22,8 @@ BOOL :: dxgi.BOOL
|
||||
|
||||
RECT :: dxgi.RECT
|
||||
|
||||
LPCWSTR :: win32.LPCWSTR
|
||||
|
||||
IModuleInstance :: d3d_compiler.ID3D11ModuleInstance
|
||||
IBlob :: d3d_compiler.ID3DBlob
|
||||
IModule :: d3d_compiler.ID3D11Module
|
||||
@@ -680,7 +682,7 @@ IObject_VTable :: struct {
|
||||
GetPrivateData: proc "system" (this: ^IObject, guid: ^GUID, pDataSize: ^u32, pData: rawptr) -> HRESULT,
|
||||
SetPrivateData: proc "system" (this: ^IObject, guid: ^GUID, DataSize: u32, pData: rawptr) -> HRESULT,
|
||||
SetPrivateDataInterface: proc "system" (this: ^IObject, guid: ^GUID, pData: ^IUnknown) -> HRESULT,
|
||||
SetName: proc "system" (this: ^IObject, Name: [^]u16) -> HRESULT,
|
||||
SetName: proc "system" (this: ^IObject, Name: LPCWSTR) -> HRESULT,
|
||||
}
|
||||
|
||||
|
||||
@@ -849,10 +851,10 @@ FEATURE :: enum i32 {
|
||||
OPTIONS19 = 48,
|
||||
}
|
||||
|
||||
SHADER_MIN_PRECISION_SUPPORT :: enum i32 {
|
||||
NONE = 0,
|
||||
_10_BIT = 1,
|
||||
_16_BIT = 2,
|
||||
SHADER_MIN_PRECISION_SUPPORT :: distinct bit_set[SHADER_MIN_PRECISION_SUPPORT_FLAG; u32]
|
||||
SHADER_MIN_PRECISION_SUPPORT_FLAG :: enum i32 {
|
||||
_10_BIT,
|
||||
_16_BIT,
|
||||
}
|
||||
|
||||
TILED_RESOURCES_TIER :: enum i32 {
|
||||
@@ -2714,9 +2716,9 @@ IDevice_VTable :: struct {
|
||||
CreateHeap: proc "system" (this: ^IDevice, pDesc: ^HEAP_DESC, riid: ^IID, ppvHeap: ^rawptr) -> HRESULT,
|
||||
CreatePlacedResource: proc "system" (this: ^IDevice, pHeap: ^IHeap, HeapOffset: u64, pDesc: ^RESOURCE_DESC, InitialState: RESOURCE_STATES, pOptimizedClearValue: ^CLEAR_VALUE, riid: ^IID, ppvResource: ^rawptr) -> HRESULT,
|
||||
CreateReservedResource: proc "system" (this: ^IDevice, pDesc: ^RESOURCE_DESC, InitialState: RESOURCE_STATES, pOptimizedClearValue: ^CLEAR_VALUE, riid: ^IID, ppvResource: ^rawptr) -> HRESULT,
|
||||
CreateSharedHandle: proc "system" (this: ^IDevice, pObject: ^IDeviceChild, pAttributes: ^win32.SECURITY_ATTRIBUTES, Access: u32, Name: [^]u16, pHandle: ^HANDLE) -> HRESULT,
|
||||
CreateSharedHandle: proc "system" (this: ^IDevice, pObject: ^IDeviceChild, pAttributes: ^win32.SECURITY_ATTRIBUTES, Access: u32, Name: LPCWSTR, pHandle: ^HANDLE) -> HRESULT,
|
||||
OpenSharedHandle: proc "system" (this: ^IDevice, NTHandle: HANDLE, riid: ^IID, ppvObj: ^rawptr) -> HRESULT,
|
||||
OpenSharedHandleByName: proc "system" (this: ^IDevice, Name: [^]u16, Access: u32, pNTHandle: ^HANDLE) -> HRESULT,
|
||||
OpenSharedHandleByName: proc "system" (this: ^IDevice, Name: LPCWSTR, Access: u32, pNTHandle: ^HANDLE) -> HRESULT,
|
||||
MakeResident: proc "system" (this: ^IDevice, NumObjects: u32, ppObjects: [^]^IPageable) -> HRESULT,
|
||||
Evict: proc "system" (this: ^IDevice, NumObjects: u32, ppObjects: [^]^IPageable) -> HRESULT,
|
||||
CreateFence: proc "system" (this: ^IDevice, InitialValue: u64, Flags: FENCE_FLAGS, riid: ^IID, ppFence: ^rawptr) -> HRESULT,
|
||||
@@ -2738,9 +2740,9 @@ IPipelineLibrary :: struct #raw_union {
|
||||
}
|
||||
IPipelineLibrary_VTable :: struct {
|
||||
using id3d12devicechild_vtable: IDeviceChild_VTable,
|
||||
StorePipeline: proc "system" (this: ^IPipelineLibrary, pName: [^]u16, pPipeline: ^IPipelineState) -> HRESULT,
|
||||
LoadGraphicsPipeline: proc "system" (this: ^IPipelineLibrary, pName: [^]u16, pDesc: ^GRAPHICS_PIPELINE_STATE_DESC, riid: ^IID, ppPipelineState: ^rawptr) -> HRESULT,
|
||||
LoadComputePipeline: proc "system" (this: ^IPipelineLibrary, pName: [^]u16, pDesc: ^COMPUTE_PIPELINE_STATE_DESC, riid: ^IID, ppPipelineState: ^rawptr) -> HRESULT,
|
||||
StorePipeline: proc "system" (this: ^IPipelineLibrary, pName: LPCWSTR, pPipeline: ^IPipelineState) -> HRESULT,
|
||||
LoadGraphicsPipeline: proc "system" (this: ^IPipelineLibrary, pName: LPCWSTR, pDesc: ^GRAPHICS_PIPELINE_STATE_DESC, riid: ^IID, ppPipelineState: ^rawptr) -> HRESULT,
|
||||
LoadComputePipeline: proc "system" (this: ^IPipelineLibrary, pName: LPCWSTR, pDesc: ^COMPUTE_PIPELINE_STATE_DESC, riid: ^IID, ppPipelineState: ^rawptr) -> HRESULT,
|
||||
GetSerializedSize: proc "system" (this: ^IPipelineLibrary) -> SIZE_T,
|
||||
Serialize: proc "system" (this: ^IPipelineLibrary, pData: rawptr, DataSizeInBytes: SIZE_T) -> HRESULT,
|
||||
}
|
||||
@@ -2754,7 +2756,7 @@ IPipelineLibrary1 :: struct #raw_union {
|
||||
}
|
||||
IPipelineLibrary1_VTable :: struct {
|
||||
using id3d12pipelinelibrary_vtable: IPipelineLibrary_VTable,
|
||||
LoadPipeline: proc "system" (this: ^IPipelineLibrary1, pName: [^]u16, pDesc: ^PIPELINE_STATE_STREAM_DESC, riid: ^IID, ppPipelineState: ^rawptr) -> HRESULT,
|
||||
LoadPipeline: proc "system" (this: ^IPipelineLibrary1, pName: LPCWSTR, pDesc: ^PIPELINE_STATE_STREAM_DESC, riid: ^IID, ppPipelineState: ^rawptr) -> HRESULT,
|
||||
}
|
||||
|
||||
MULTIPLE_FENCE_WAIT_FLAGS :: distinct bit_set[MULTIPLE_FENCE_WAIT_FLAG; u32]
|
||||
@@ -2961,7 +2963,7 @@ META_COMMAND_PARAMETER_STAGE :: enum i32 {
|
||||
}
|
||||
|
||||
META_COMMAND_PARAMETER_DESC :: struct {
|
||||
Name: [^]u16,
|
||||
Name: LPCWSTR,
|
||||
Type: META_COMMAND_PARAMETER_TYPE,
|
||||
Flags: META_COMMAND_PARAMETER_FLAGS,
|
||||
RequiredResourceState: RESOURCE_STATES,
|
||||
@@ -2991,7 +2993,7 @@ GRAPHICS_STATES :: enum i32 {
|
||||
|
||||
META_COMMAND_DESC :: struct {
|
||||
Id: GUID,
|
||||
Name: [^]u16,
|
||||
Name: LPCWSTR,
|
||||
InitializationDirtyState: GRAPHICS_STATES,
|
||||
ExecutionDirtyState: GRAPHICS_STATES,
|
||||
}
|
||||
@@ -3012,8 +3014,8 @@ IStateObjectProperties :: struct #raw_union {
|
||||
}
|
||||
IStateObjectProperties_VTable :: struct {
|
||||
using iunknown_vtable: IUnknown_VTable,
|
||||
GetShaderIdentifier: proc "system" (this: ^IStateObjectProperties, pExportName: [^]u16) -> rawptr,
|
||||
GetShaderStackSize: proc "system" (this: ^IStateObjectProperties, pExportName: [^]u16) -> u64,
|
||||
GetShaderIdentifier: proc "system" (this: ^IStateObjectProperties, pExportName: LPCWSTR) -> rawptr,
|
||||
GetShaderStackSize: proc "system" (this: ^IStateObjectProperties, pExportName: LPCWSTR) -> u64,
|
||||
GetPipelineStackSize: proc "system" (this: ^IStateObjectProperties) -> u64,
|
||||
SetPipelineStackSize: proc "system" (this: ^IStateObjectProperties, PipelineStackSizeInBytes: u64),
|
||||
}
|
||||
@@ -3067,8 +3069,8 @@ EXPORT_FLAG :: enum u32 {
|
||||
}
|
||||
|
||||
EXPORT_DESC :: struct {
|
||||
Name: [^]u16,
|
||||
ExportToRename: [^]u16,
|
||||
Name: LPCWSTR,
|
||||
ExportToRename: LPCWSTR,
|
||||
Flags: EXPORT_FLAGS,
|
||||
}
|
||||
|
||||
@@ -3414,9 +3416,9 @@ AUTO_BREADCRUMB_OP :: enum i32 {
|
||||
|
||||
AUTO_BREADCRUMB_NODE :: struct {
|
||||
pCommandListDebugNameA: cstring,
|
||||
pCommandListDebugNameW: [^]u16,
|
||||
pCommandListDebugNameW: LPCWSTR,
|
||||
pCommandQueueDebugNameA: cstring,
|
||||
pCommandQueueDebugNameW: [^]u16,
|
||||
pCommandQueueDebugNameW: LPCWSTR,
|
||||
pCommandList: ^IGraphicsCommandList,
|
||||
pCommandQueue: ^ICommandQueue,
|
||||
BreadcrumbCount: u32,
|
||||
@@ -3427,14 +3429,14 @@ AUTO_BREADCRUMB_NODE :: struct {
|
||||
|
||||
DRED_BREADCRUMB_CONTEXT :: struct {
|
||||
BreadcrumbIndex: u32,
|
||||
pContextString: [^]u16,
|
||||
pContextString: LPCWSTR,
|
||||
}
|
||||
|
||||
AUTO_BREADCRUMB_NODE1 :: struct {
|
||||
pCommandListDebugNameA: cstring,
|
||||
pCommandListDebugNameW: [^]u16,
|
||||
pCommandListDebugNameW: LPCWSTR,
|
||||
pCommandQueueDebugNameA: cstring,
|
||||
pCommandQueueDebugNameW: [^]u16,
|
||||
pCommandQueueDebugNameW: LPCWSTR,
|
||||
pCommandList: ^IGraphicsCommandList,
|
||||
pCommandQueue: ^ICommandQueue,
|
||||
BreadcrumbCount: u32,
|
||||
|
||||
Vendored
+3
-2
@@ -10,8 +10,9 @@ g_ctx: runtime.Context
|
||||
g_allocator: mem.Compat_Allocator
|
||||
|
||||
@(init)
|
||||
init_context :: proc() {
|
||||
g_ctx = context
|
||||
init_context :: proc "contextless" () {
|
||||
g_ctx = runtime.default_context()
|
||||
context = g_ctx
|
||||
|
||||
// Wrapping the allocator with the mem.Compat_Allocator so we can
|
||||
// mimic the realloc semantics.
|
||||
|
||||
Vendored
+1
-1
@@ -169,7 +169,7 @@ exit :: proc "c" (exit_code: c.int) -> ! {
|
||||
}
|
||||
|
||||
@(private, fini)
|
||||
finish_atexit :: proc "c" () {
|
||||
finish_atexit :: proc "contextless" () {
|
||||
n := intrinsics.atomic_exchange(&atexit_functions_count, 0)
|
||||
for function in atexit_functions[:n] {
|
||||
function()
|
||||
|
||||
Vendored
+2
-2
@@ -25,7 +25,7 @@ BINDINGS_VERSION :: [3]u32{BINDINGS_VERSION_MAJOR, BINDINGS_VERSION_MIN
|
||||
BINDINGS_VERSION_STRING :: "0.11.22"
|
||||
|
||||
@(init)
|
||||
version_check :: proc() {
|
||||
version_check :: proc "contextless" () {
|
||||
v: [3]u32
|
||||
version(&v.x, &v.y, &v.z)
|
||||
if v != BINDINGS_VERSION {
|
||||
@@ -43,7 +43,7 @@ version_check :: proc() {
|
||||
n += copy(buf[n:], "and executing `make`")
|
||||
}
|
||||
|
||||
panic(string(buf[:n]))
|
||||
panic_contextless(string(buf[:n]))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Vendored
+55
-41
@@ -60,7 +60,7 @@ FontStyle :: enum u32 {
|
||||
FontStyleFlags :: distinct bit_set[FontStyle; u32]
|
||||
|
||||
// NOTE: This is called TTF_HintingFlags but its not a bit_set so
|
||||
// the "flags" doesnt really make sense, its just the hinting.
|
||||
// the "flags" doesn't really make sense, its just the hinting.
|
||||
Hinting :: enum c.int {
|
||||
INVALID = -1,
|
||||
NORMAL,
|
||||
@@ -125,11 +125,8 @@ SubString :: struct {
|
||||
|
||||
@(default_calling_convention="c", link_prefix="TTF_", require_results)
|
||||
foreign lib {
|
||||
Version :: proc() -> c.int ---
|
||||
GetFreeTypeVersion :: proc(major, minor, patch: ^c.int) ---
|
||||
GetHarfBuzzVersion :: proc(major, minor, patch: ^c.int) ---
|
||||
|
||||
Init :: proc() -> bool ---
|
||||
Version :: proc() -> c.int ---
|
||||
WasInit :: proc() -> c.int ---
|
||||
|
||||
OpenFont :: proc(file: cstring, ptsize: f32) -> ^Font ---
|
||||
OpenFontIO :: proc(src: ^SDL.IOStream, closeio: bool, ptsize: f32) -> ^Font ---
|
||||
@@ -140,14 +137,7 @@ foreign lib {
|
||||
GetFontProperties :: proc(font: ^Font) -> SDL.PropertiesID ---
|
||||
GetFontGeneration :: proc(font: ^Font) -> u32 ---
|
||||
|
||||
AddFallbackFont :: proc(font: ^Font, fallback: ^Font) -> bool ---
|
||||
RemoveFallbackFont :: proc(font: ^Font, fallback: ^Font) ---
|
||||
ClearFallbackFonts :: proc(font: ^Font) ---
|
||||
|
||||
SetFontSize :: proc(font: ^Font, ptsize: f32) -> bool ---
|
||||
SetFontSizeDPI :: proc(font: ^Font, ptsize: f32, hdpi: c.int, vdpi: c.int) -> bool ---
|
||||
GetFontSize :: proc(font: ^Font) -> f32 ---
|
||||
GetFontDPI :: proc(font: ^Font, hdpi: ^c.int, vdpi: ^c.int) -> bool ---
|
||||
GetFontSize :: proc(font: ^Font) -> f32 ---
|
||||
|
||||
SetFontStyle :: proc(font: ^Font, style: FontStyleFlags) ---
|
||||
GetFontStyle :: proc(font: ^Font) -> FontStyleFlags ---
|
||||
@@ -184,31 +174,20 @@ foreign lib {
|
||||
GetFontFamilyName :: proc(font: ^Font) -> cstring ---
|
||||
GetFontStyleName :: proc(font: ^Font) -> cstring ---
|
||||
|
||||
SetFontDirection :: proc(font: ^Font, direction: Direction) -> bool ---
|
||||
GetFontDirection :: proc(font: ^Font) -> Direction ---
|
||||
|
||||
StringToTag :: proc(string: cstring) -> u32 ---
|
||||
TagToString :: proc(tag: u32, string: [^]c.char, size: c.size_t) ---
|
||||
|
||||
SetFontScript :: proc(font: ^Font, script: u32) -> bool ---
|
||||
GetFontScript :: proc(font: ^Font) -> u32 ---
|
||||
|
||||
SetFontLanguage :: proc(font: ^Font, language_bcp47: cstring) -> bool ---
|
||||
|
||||
GetGlyphScript :: proc(ch: u32) -> u32 ---
|
||||
FontHasGlyph :: proc(font: ^Font, ch: u32) -> bool ---
|
||||
GetGlyphImage :: proc(font: ^Font, ch: u32, image_type: ^ImageType) -> ^SDL.Surface ---
|
||||
GetGlyphImageForIndex :: proc(font: ^Font, glyph_index: u32, image_type: ^ImageType) -> ^SDL.Surface ---
|
||||
GetGlyphMetrics :: proc(font: ^Font, ch: u32, minx, maxx, miny, maxy, advance: ^c.int) -> bool ---
|
||||
GetGlyphKerning :: proc(font: ^Font, previous_ch: u32, ch: u32, kerning: ^c.int) -> bool ---
|
||||
|
||||
GetStringSize :: proc(font: ^Font, text: cstring, length: c.size_t, w, h: ^c.int) -> bool ---
|
||||
GetStringSizeWrapped :: proc(font: ^Font, text: cstring, length: c.size_t, wrap_width: c.int, w, h: ^c.int) -> bool ---
|
||||
MeasureString :: proc(font: ^Font, text: cstring, length: c.size_t, max_width: c.int, measured_width: ^c.int, measured_length: ^c.size_t) -> bool ---
|
||||
|
||||
RenderText_Solid :: proc(font: ^Font, text: cstring, length: c.size_t, fg: SDL.Color) -> ^SDL.Surface ---
|
||||
RenderText_Solid_Wrapped :: proc(font: ^Font, text: cstring, length: c.size_t, fg: SDL.Color, wrap_Length: c.int) -> ^SDL.Surface ---
|
||||
RenderGylph_Solid :: proc(font: ^Font, ch: u32, fg: SDL.Color) -> ^SDL.Surface ---
|
||||
RenderGlyph_Solid :: proc(font: ^Font, ch: u32, fg: SDL.Color) -> ^SDL.Surface ---
|
||||
RenderText_Shaded :: proc(font: ^Font, text: cstring, length: c.size_t, fg, bg: SDL.Color) -> ^SDL.Surface ---
|
||||
RenderText_Shaded_Wrapped :: proc(font: ^Font, text: cstring, length: c.size_t, fg, bg: SDL.Color, wrap_width: c.int) -> ^SDL.Surface ---
|
||||
RenderGlyph_Shaded :: proc(font: ^Font, ch: u32, fg, bg: SDL.Color) -> ^SDL.Surface ---
|
||||
@@ -219,32 +198,70 @@ foreign lib {
|
||||
RenderText_LCD_Wrapped :: proc(font: ^Font, text: cstring, length: c.size_t, fg, bg: SDL.Color, wrap_width: c.int) -> ^SDL.Surface ---
|
||||
RenderGlyph_LCD :: proc(font: ^Font, ch: u32, fg, bg: SDL.Color) -> ^SDL.Surface ---
|
||||
|
||||
CreateSurfaceTextEngine :: proc() -> ^TextEngine ---
|
||||
DrawSurfaceText :: proc(text: ^Text, x, y: c.int, surface: ^SDL.Surface) -> bool ---
|
||||
DestroySurfaceTextEngine :: proc(engine: ^TextEngine) ---
|
||||
CreateSurfaceTextEngine :: proc() -> ^TextEngine ---
|
||||
|
||||
CreateRendererTextEngine :: proc(renderer: ^SDL.Renderer) -> ^TextEngine ---
|
||||
CreateRendererTextEngineWithProperties :: proc(props: SDL.PropertiesID) -> ^TextEngine ---
|
||||
DrawRendererText :: proc(text: ^Text, x, y: f32) -> bool ---
|
||||
DestroyRendererTextEngine :: proc(engine: ^TextEngine) ---
|
||||
|
||||
CreateGPUTextEngine :: proc(device: ^SDL.GPUDevice) -> ^TextEngine ---
|
||||
CreateGPUTextEngineWithProperties :: proc(props: SDL.PropertiesID) -> ^TextEngine ---
|
||||
GetGPUTextDrawData :: proc(text: ^Text) -> ^GPUAtlasDrawSequence ---
|
||||
DestroyGPUTextEngine :: proc(engine: ^TextEngine) ---
|
||||
SetGPUTextEngineWinding :: proc(engine: ^TextEngine, winding: GPUTextEngineWinding) ---
|
||||
GetGPUTextEngineWinding :: proc(#by_ptr engine: TextEngine) -> GPUTextEngineWinding ---
|
||||
|
||||
CreateText :: proc(engine: ^TextEngine, font: ^Font, text: cstring, length: c.size_t) -> ^Text ---
|
||||
GetTextProperties :: proc(text: ^Text) -> SDL.PropertiesID ---
|
||||
CreateText :: proc(engine: ^TextEngine, font: ^Font, text: cstring, length: c.size_t) -> ^Text ---
|
||||
GetTextProperties :: proc(text: ^Text) -> SDL.PropertiesID ---
|
||||
GetTextEngine :: proc(text: ^Text) -> ^TextEngine ---
|
||||
GetTextFont :: proc(text: ^Text) -> ^Font ---
|
||||
GetTextDirection :: proc(text: ^Text) -> Direction ---
|
||||
GetTextScript :: proc(text: ^Text) -> u32 ---
|
||||
TextWrapWhitespaceVisible :: proc(text: ^Text) -> bool ---
|
||||
|
||||
GetTextSubStringsForRange :: proc(text: ^Text, offset, length: c.int, count: ^c.int) -> [^]^SubString ---
|
||||
}
|
||||
|
||||
@(default_calling_convention="c", link_prefix="TTF_")
|
||||
foreign lib {
|
||||
GetFreeTypeVersion :: proc(major, minor, patch: ^c.int) ---
|
||||
GetHarfBuzzVersion :: proc(major, minor, patch: ^c.int) ---
|
||||
|
||||
Init :: proc() -> bool ---
|
||||
|
||||
AddFallbackFont :: proc(font: ^Font, fallback: ^Font) -> bool ---
|
||||
RemoveFallbackFont :: proc(font: ^Font, fallback: ^Font) ---
|
||||
ClearFallbackFonts :: proc(font: ^Font) ---
|
||||
|
||||
SetFontSize :: proc(font: ^Font, ptsize: f32) -> bool ---
|
||||
SetFontSizeDPI :: proc(font: ^Font, ptsize: f32, hdpi: c.int, vdpi: c.int) -> bool ---
|
||||
GetFontDPI :: proc(font: ^Font, hdpi: ^c.int, vdpi: ^c.int) -> bool ---
|
||||
|
||||
SetFontDirection :: proc(font: ^Font, direction: Direction) -> bool ---
|
||||
|
||||
TagToString :: proc(tag: u32, string: [^]c.char, size: c.size_t) ---
|
||||
|
||||
SetFontScript :: proc(font: ^Font, script: u32) -> bool ---
|
||||
|
||||
SetFontLanguage :: proc(font: ^Font, language_bcp47: cstring) -> bool ---
|
||||
|
||||
GetGlyphMetrics :: proc(font: ^Font, ch: u32, minx, maxx, miny, maxy, advance: ^c.int) -> bool ---
|
||||
GetGlyphKerning :: proc(font: ^Font, previous_ch: u32, ch: u32, kerning: ^c.int) -> bool ---
|
||||
|
||||
GetStringSize :: proc(font: ^Font, text: cstring, length: c.size_t, w, h: ^c.int) -> bool ---
|
||||
GetStringSizeWrapped :: proc(font: ^Font, text: cstring, length: c.size_t, wrap_width: c.int, w, h: ^c.int) -> bool ---
|
||||
MeasureString :: proc(font: ^Font, text: cstring, length: c.size_t, max_width: c.int, measured_width: ^c.int, measured_length: ^c.size_t) -> bool ---
|
||||
|
||||
DrawSurfaceText :: proc(text: ^Text, x, y: c.int, surface: ^SDL.Surface) -> bool ---
|
||||
DestroySurfaceTextEngine :: proc(engine: ^TextEngine) ---
|
||||
|
||||
DrawRendererText :: proc(text: ^Text, x, y: f32) -> bool ---
|
||||
DestroyRendererTextEngine :: proc(engine: ^TextEngine) ---
|
||||
|
||||
DestroyGPUTextEngine :: proc(engine: ^TextEngine) ---
|
||||
|
||||
SetTextEngine :: proc(text: ^Text, engine: ^TextEngine) -> bool ---
|
||||
GetTextEngine :: proc(text: ^Text) -> ^TextEngine ---
|
||||
SetTextFont :: proc(text: ^Text, font: ^Font) -> bool ---
|
||||
GetTextFont :: proc(text: ^Text) -> ^Font ---
|
||||
SetTextDirection :: proc(text: ^Text, direction: Direction) -> bool ---
|
||||
GetTextDirection :: proc(text: ^Text) -> Direction ---
|
||||
SetTextScript :: proc(text: ^Text, script: u32) -> bool ---
|
||||
GetTextScript :: proc(text: ^Text) -> u32 ---
|
||||
SetTextColor :: proc(text: ^Text, r, g, b, a: u8) -> bool ---
|
||||
SetTextColorFloat :: proc(text: ^Text, r, g, b, a: f32) -> bool ---
|
||||
GetTextColor :: proc(text: ^Text, r, g, b, a: ^u8) -> bool ---
|
||||
@@ -254,7 +271,6 @@ foreign lib {
|
||||
SetTextWrapWidth :: proc(text: ^Text, wrap_width: c.int) -> bool ---
|
||||
GetTextWrapWidth :: proc(text: ^Text, wrap_width: ^c.int) -> bool ---
|
||||
SetTextWrapWhitespaceVisible :: proc(text: ^Text, visible: bool) -> bool ---
|
||||
TextWrapWhitespaceVisible :: proc(text: ^Text) -> bool ---
|
||||
|
||||
SetTextString :: proc(text: ^Text, string: cstring, length: c.size_t) -> bool ---
|
||||
InsertTextString :: proc(text: ^Text, offset: c.int, string: cstring, length: c.size_t) -> bool ---
|
||||
@@ -265,7 +281,6 @@ foreign lib {
|
||||
|
||||
GetTextSubString :: proc(text: ^Text, offset: c.int, substring: ^SubString) -> bool ---
|
||||
GetTextSubStringForLine :: proc(text: ^Text, line: c.int, substring: ^SubString) -> bool ---
|
||||
GetTextSubStringsForRange :: proc(text: ^Text, offset, length: c.int, count: ^c.int) -> [^]^SubString ---
|
||||
GetTextSubStringForPoint :: proc(text: ^Text, x, y: c.int, substring: ^SubString) -> bool ---
|
||||
GetPreviousTextSubString :: proc(text: ^Text, #by_ptr substring: SubString, previous: ^SubString) -> bool ---
|
||||
GetNextTextSubString :: proc(text: ^Text, #by_ptr substring: SubString, next: ^SubString) -> bool ---
|
||||
@@ -274,5 +289,4 @@ foreign lib {
|
||||
DestroyText :: proc(text: ^Text) ---
|
||||
CloseFont :: proc(font: ^Font) ---
|
||||
Quit :: proc() ---
|
||||
WasInit :: proc() -> c.int ---
|
||||
}
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
Vendored
+4
@@ -1,2 +1,6 @@
|
||||
#define STBRP_STATIC
|
||||
#define STB_RECT_PACK_IMPLEMENTATION
|
||||
#include "stb_rect_pack.h"
|
||||
|
||||
#define STB_TRUETYPE_IMPLEMENTATION
|
||||
#include "stb_truetype.h"
|
||||
Vendored
+58
-8
@@ -52,6 +52,7 @@ foreign webgl {
|
||||
BindBuffer :: proc(target: Enum, buffer: Buffer) ---
|
||||
BindFramebuffer :: proc(target: Enum, framebuffer: Framebuffer) ---
|
||||
BindTexture :: proc(target: Enum, texture: Texture) ---
|
||||
BindRenderbuffer :: proc(target: Enum, renderbuffer: Renderbuffer) ---
|
||||
BlendColor :: proc(red, green, blue, alpha: f32) ---
|
||||
BlendEquation :: proc(mode: Enum) ---
|
||||
BlendEquationSeparate :: proc(modeRGB: Enum, modeAlpha: Enum) ---
|
||||
@@ -172,14 +173,63 @@ foreign webgl {
|
||||
Viewport :: proc(x, y, w, h: i32) ---
|
||||
}
|
||||
|
||||
Uniform1fv :: proc "contextless" (location: i32, v: f32) { Uniform1f(location, v) }
|
||||
Uniform2fv :: proc "contextless" (location: i32, v: glm.vec2) { Uniform2f(location, v.x, v.y) }
|
||||
Uniform3fv :: proc "contextless" (location: i32, v: glm.vec3) { Uniform3f(location, v.x, v.y, v.z) }
|
||||
Uniform4fv :: proc "contextless" (location: i32, v: glm.vec4) { Uniform4f(location, v.x, v.y, v.z, v.w) }
|
||||
Uniform1iv :: proc "contextless" (location: i32, v: i32) { Uniform1i(location, v) }
|
||||
Uniform2iv :: proc "contextless" (location: i32, v: glm.ivec2) { Uniform2i(location, v.x, v.y) }
|
||||
Uniform3iv :: proc "contextless" (location: i32, v: glm.ivec3) { Uniform3i(location, v.x, v.y, v.z) }
|
||||
Uniform4iv :: proc "contextless" (location: i32, v: glm.ivec4) { Uniform4i(location, v.x, v.y, v.z, v.w) }
|
||||
Uniform1fv :: proc "contextless" (location: i32, v: []f32) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform1fv")
|
||||
_Uniform1fv :: proc "contextless" (location: i32, count: int, value: [^]f32) ---
|
||||
}
|
||||
_Uniform1fv(location, len(v), &v[0])
|
||||
}
|
||||
Uniform2fv :: proc "contextless" (location: i32, v: []glm.vec2) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform2fv")
|
||||
_Uniform2fv :: proc "contextless" (location: i32, count: int, value: [^]f32) ---
|
||||
}
|
||||
_Uniform2fv(location, len(v), &v[0].x)
|
||||
}
|
||||
Uniform3fv :: proc "contextless" (location: i32, v: []glm.vec3) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform3fv")
|
||||
_Uniform3fv :: proc "contextless" (location: i32, count: int, value: [^]f32) ---
|
||||
}
|
||||
_Uniform3fv(location, len(v), &v[0].x)
|
||||
}
|
||||
Uniform4fv :: proc "contextless" (location: i32, v: []glm.vec4) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform4fv")
|
||||
_Uniform4fv :: proc "contextless" (location: i32, count: int, value: [^]f32) ---
|
||||
}
|
||||
_Uniform4fv(location, len(v), &v[0].x)
|
||||
}
|
||||
|
||||
Uniform1iv :: proc "contextless" (location: i32, v: []i32) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform1iv")
|
||||
_Uniform1iv :: proc "contextless" (location: i32, count: int, value: [^]i32) ---
|
||||
}
|
||||
_Uniform1iv(location, len(v), &v[0])
|
||||
}
|
||||
Uniform2iv :: proc "contextless" (location: i32, v: []glm.ivec2) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform2iv")
|
||||
_Uniform2iv :: proc "contextless" (location: i32, count: int, value: [^]i32) ---
|
||||
}
|
||||
_Uniform2iv(location, len(v), &v[0].x)
|
||||
}
|
||||
Uniform3iv :: proc "contextless" (location: i32, v: []glm.ivec3) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform3iv")
|
||||
_Uniform3iv :: proc "contextless" (location: i32, count: int, value: [^]i32) ---
|
||||
}
|
||||
_Uniform3iv(location, len(v), &v[0].x)
|
||||
}
|
||||
Uniform4iv :: proc "contextless" (location: i32, v: []glm.ivec4) {
|
||||
foreign webgl {
|
||||
@(link_name="Uniform4iv")
|
||||
_Uniform4iv :: proc "contextless" (location: i32, count: int, value: [^]i32) ---
|
||||
}
|
||||
_Uniform4iv(location, len(v), &v[0].x)
|
||||
}
|
||||
|
||||
VertexAttrib1fv :: proc "contextless" (index: i32, v: f32) { VertexAttrib1f(index, v) }
|
||||
VertexAttrib2fv :: proc "contextless" (index: i32, v: glm.vec2){ VertexAttrib2f(index, v.x, v.y) }
|
||||
|
||||
Vendored
+1
-1
@@ -36,7 +36,7 @@ foreign webgl2 {
|
||||
/* Texture objects */
|
||||
TexStorage3D :: proc(target: Enum, levels: i32, internalformat: Enum, width, height, depth: i32) ---
|
||||
TexImage3D :: proc(target: Enum, level: i32, internalformat: Enum, width, height, depth: i32, border: i32, format, type: Enum, size: int, data: rawptr) ---
|
||||
TexSubImage3D :: proc(target: Enum, level: i32, xoffset, yoffset, width, height, depth: i32, format, type: Enum, size: int, data: rawptr) ---
|
||||
TexSubImage3D :: proc(target: Enum, level: i32, xoffset, yoffset, zoffset, width, height, depth: i32, format, type: Enum, size: int, data: rawptr) ---
|
||||
CompressedTexImage3D :: proc(target: Enum, level: i32, internalformat: Enum, width, height, depth: i32, border: i32, imageSize: int, data: rawptr) ---
|
||||
CompressedTexSubImage3D :: proc(target: Enum, level: i32, xoffset, yoffset: i32, width, height, depth: i32, format: Enum, imageSize: int, data: rawptr) ---
|
||||
CopyTexSubImage3D :: proc(target: Enum, level: i32, xoffset, yoffset, zoffset: i32, x, y, width, height: i32) ---
|
||||
|
||||
Vendored
+1
-1
@@ -5,7 +5,7 @@ import "base:runtime"
|
||||
g_context: runtime.Context
|
||||
|
||||
@(private="file", init)
|
||||
wgpu_init_allocator :: proc() {
|
||||
wgpu_init_allocator :: proc "contextless" () {
|
||||
if g_context.allocator.procedure == nil {
|
||||
g_context = runtime.default_context()
|
||||
}
|
||||
|
||||
Vendored
+12
@@ -389,6 +389,18 @@ foreign xlib {
|
||||
requestor: Window,
|
||||
time: Time,
|
||||
) ---
|
||||
GetTextProperty :: proc(
|
||||
display: ^Display,
|
||||
window: Window,
|
||||
text_prop_return: ^XTextProperty,
|
||||
property: Atom,
|
||||
) -> Status ---
|
||||
SetTextProperty :: proc(
|
||||
display: ^Display,
|
||||
window: Window,
|
||||
text_prop: ^XTextProperty,
|
||||
property: Atom,
|
||||
) ---
|
||||
// Creating and freeing pixmaps
|
||||
CreatePixmap :: proc(
|
||||
display: ^Display,
|
||||
|
||||
Reference in New Issue
Block a user