add support for multisample count

This commit is contained in:
Greg Wells
2025-07-05 16:28:05 -04:00
parent 16c5d8cff2
commit 2ffa5adbb9
3 changed files with 31 additions and 3 deletions

View File

@@ -7,13 +7,24 @@ typedef enum gnDeviceType {
GN_DEDICATED_DEVICE, GN_INTEGRATED_DEVICE, GN_EXTERNAL_DEVICE
} gnDeviceType;
typedef enum gnMultisampleCountFlags {
GN_SAMPLES_NONE = 0,
GN_SAMPLE_BIT_1 = 1 << 0, // 0x01
GN_SAMPLE_BIT_2 = 1 << 1, // 0x02
GN_SAMPLE_BIT_4 = 1 << 2, // 0x04
GN_SAMPLE_BIT_8 = 1 << 3, // 0x08
GN_SAMPLE_BIT_16 = 1 << 4, // 0x10
GN_SAMPLE_BIT_32 = 1 << 5, // 0x20
GN_SAMPLE_BIT_64 = 1 << 6, // 0x40
} gnMultisampleCountFlags;
typedef struct gnPhysicalDeviceProperties {
gnString name;
gnDeviceType deviceType;
} gnPhysicalDeviceProperties;
typedef struct gnPhysicalDeviceFeatures {
gnBool supportsGeometryShader;
gnMultisampleCountFlags avaliableSamples;
} gnPhysicalDeviceFeatures;
typedef enum gnQueueTypeFlags {