@@ -379,6 +379,10 @@ enum
379379 DkImageFlags_UsagePresent = 1U << 10 , // Specifies that the image will be used with a DkSwapchain.
380380 DkImageFlags_Usage2DEngine = 1U << 11 , // Specifies that the image will be used with the 2D Engine (e.g. for transfers between images)
381381 DkImageFlags_UsageVideo = 1U << 12 , // Specifies that the image will be used with hardware video encoding/decoding engines
382+
383+ // Informational flags only (for dkImageFormatGetFlags)
384+ DkImageFormatFlags_IsInt = 1U << 16 , // Specifies that the image format is pure integer
385+ DkImageFormatFlags_IsDepth = 1U << 17 , // Specifies that the image format is for depth/stencil
382386};
383387
384388typedef enum DkImageFormat
@@ -498,7 +502,7 @@ typedef enum DkImageFormat
498502 DkImageFormat_BGR565_Unorm,
499503 DkImageFormat_BGR5_Unorm,
500504 DkImageFormat_BGR5A1_Unorm,
501- DkImageFormat_A5BGR5_Unorm ,
505+ DkImageFormat_A1BGR5_Unorm ,
502506 DkImageFormat_BGRX8_Unorm,
503507 DkImageFormat_BGRA8_Unorm,
504508 DkImageFormat_BGRX8_Unorm_sRGB,
@@ -1338,6 +1342,8 @@ void dkShaderInitialize(DkShader* obj, DkShaderMaker const* maker);
13381342bool dkShaderIsValid (DkShader const * obj);
13391343DkStage dkShaderGetStage (DkShader const * obj);
13401344
1345+ uint32_t dkImageFormatGetFlags (DkImageFormat format);
1346+
13411347void dkImageLayoutInitialize (DkImageLayout* obj, DkImageLayoutMaker const * maker);
13421348uint64_t dkImageLayoutGetSize (DkImageLayout const * obj);
13431349uint32_t dkImageLayoutGetAlignment (DkImageLayout const * obj);
0 commit comments