vulkan icon indicating copy to clipboard operation
vulkan copied to clipboard

types for enums

Open hrbigelow opened this issue 1 year ago • 2 comments

Hi,

I wondered if you'd consider (or is it already available?) providing types for the enums so we can use type annotations, for example:

from typing import NewType

VkFormat = NewType('VkFormat', int)
VK_FORMAT_UNDEFINED = VkFormat(0)
VK_FORMAT_R4G4_UNORM_PACK8 = VkFormat(1)
...


def some_func(format: VkFormat, ...)

hrbigelow avatar Apr 24 '24 15:04 hrbigelow

Yes please! Type annotations would be great 🥳

ItsCubeTime avatar Jun 08 '24 23:06 ItsCubeTime

Indeed it's a good idea, if you can do a PR for it I will merge it.

realitix avatar Jun 10 '24 06:06 realitix