Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/generated-bindings-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Accept only generated binding files
Expand Down Expand Up @@ -96,21 +96,21 @@ jobs:
v-version: 0.5.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: antono2/v_vulkan_bindings
ref: 2700e4f4c58e9e625657b80f4f44b0584d7c6096
path: generator
- uses: prantlf/setup-v-action@v4
- uses: prantlf/setup-v-action@92f20bea50d2c9931a28c96bb4997a3c7357baf0 # v4
if: matrix.v-channel == 'stable'
with:
version: ${{ matrix.v-version }}
# Source-built V revisions include the v1_fallback executable needed by
# tool commands such as `v test`; setup-v-action@v4 omits it from cache.
- name: Check out source-built V
if: matrix.v-channel != 'stable'
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
id: checkout_v_source
continue-on-error: ${{ matrix.v-channel == 'master' }}
with:
Expand All @@ -120,15 +120,15 @@ jobs:
fetch-depth: 1
- name: Check out the matching v3 bootstrap source
if: matrix.v-channel == 'v3' && steps.checkout_v_source.outcome == 'success'
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: vlang/vc
ref: 4598bc7e4894c154b27391e4442005fff2fbbd68
path: .ci-v-source/vc
fetch-depth: 1
- name: Check out the matching v3 TinyCC runtime
if: matrix.v-channel == 'v3' && steps.checkout_v_source.outcome == 'success'
uses: actions/checkout@v7
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
repository: vlang/tccbin
ref: d6e7ac1b1bcc98aed734a6ecbfa8509f24606c74
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
fetch-depth: 0
- name: Validate and publish the package release
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ This changelog tracks the semantic version of the V module in `v.mod`.
Generated binding snapshots continue to use the Vulkan registry version stored
in `VERSION`.

## Unreleased

### Fixed

- Spell `LogicOp.or_` with a trailing underscore because `or` is a V3 keyword.
Its Vulkan value remains 7.
- Represent opaque Metal and IOSurface handle fields as `voidptr`, matching
their pointer-sized C ABI while satisfying the strict V3 frontend.

## 2.0.0 - 2026-09-22

### Changed
Expand Down
22 changes: 11 additions & 11 deletions vulkan.v
Original file line number Diff line number Diff line change
Expand Up @@ -2242,7 +2242,7 @@ pub enum LogicOp as u32 {
and_inverted = 4
no = 5
xor = 6
or = 7
or_ = 7
nor = 8
equivalent = 9
invert = 10
Expand Down Expand Up @@ -28563,7 +28563,7 @@ pub struct C.VkExportMetalDeviceInfoEXT {
pub mut:
sType StructureType = StructureType.export_metal_device_info_ext
pNext voidptr = unsafe { nil }
mtlDevice MTLDevice_id
mtlDevice voidptr
}

// ExportMetalCommandQueueInfoEXT extends VkExportMetalObjectsInfoEXT
Expand All @@ -28575,7 +28575,7 @@ pub mut:
sType StructureType = StructureType.export_metal_command_queue_info_ext
pNext voidptr = unsafe { nil }
queue Queue
mtlCommandQueue MTLCommandQueue_id
mtlCommandQueue voidptr
}

// ExportMetalBufferInfoEXT extends VkExportMetalObjectsInfoEXT
Expand All @@ -28587,7 +28587,7 @@ pub mut:
sType StructureType = StructureType.export_metal_buffer_info_ext
pNext voidptr = unsafe { nil }
memory DeviceMemory
mtlBuffer MTLBuffer_id
mtlBuffer voidptr
}

// ImportMetalBufferInfoEXT extends VkMemoryAllocateInfo
Expand All @@ -28598,7 +28598,7 @@ pub struct C.VkImportMetalBufferInfoEXT {
pub mut:
sType StructureType = StructureType.import_metal_buffer_info_ext
pNext voidptr = unsafe { nil }
mtlBuffer MTLBuffer_id
mtlBuffer voidptr
}

// ExportMetalTextureInfoEXT extends VkExportMetalObjectsInfoEXT
Expand All @@ -28613,7 +28613,7 @@ pub mut:
imageView ImageView
bufferView BufferView
plane ImageAspectFlagBits
mtlTexture MTLTexture_id
mtlTexture voidptr
}

// ImportMetalTextureInfoEXT extends VkImageCreateInfo
Expand All @@ -28625,7 +28625,7 @@ pub mut:
sType StructureType = StructureType.import_metal_texture_info_ext
pNext voidptr = unsafe { nil }
plane ImageAspectFlagBits
mtlTexture MTLTexture_id
mtlTexture voidptr
}

// ExportMetalIOSurfaceInfoEXT extends VkExportMetalObjectsInfoEXT
Expand All @@ -28637,7 +28637,7 @@ pub mut:
sType StructureType = StructureType.export_metal_io_surface_info_ext
pNext voidptr = unsafe { nil }
image Image
ioSurface IOSurfaceRef
ioSurface voidptr
}

// ImportMetalIOSurfaceInfoEXT extends VkImageCreateInfo
Expand All @@ -28648,7 +28648,7 @@ pub struct C.VkImportMetalIOSurfaceInfoEXT {
pub mut:
sType StructureType = StructureType.import_metal_io_surface_info_ext
pNext voidptr = unsafe { nil }
ioSurface IOSurfaceRef
ioSurface voidptr
}

// ExportMetalSharedEventInfoEXT extends VkExportMetalObjectsInfoEXT
Expand All @@ -28661,7 +28661,7 @@ pub mut:
pNext voidptr = unsafe { nil }
semaphore Semaphore
event Event
mtlSharedEvent MTLSharedEvent_id
mtlSharedEvent voidptr
}

// ImportMetalSharedEventInfoEXT extends VkSemaphoreCreateInfo,VkEventCreateInfo
Expand All @@ -28672,7 +28672,7 @@ pub struct C.VkImportMetalSharedEventInfoEXT {
pub mut:
sType StructureType = StructureType.import_metal_shared_event_info_ext
pNext voidptr = unsafe { nil }
mtlSharedEvent MTLSharedEvent_id
mtlSharedEvent voidptr
}

@[keep_args_alive]
Expand Down
Loading