6#include "dawn/common/objectid.hxx"
8#include "dawn/debug.hxx"
16#if defined(CONFIG_DAWN_DTYPE_BOOL) || defined(CONFIG_DAWN_DTYPE_INT8) || \
17 defined(CONFIG_DAWN_DTYPE_UINT8) || defined(CONFIG_DAWN_DTYPE_BLOCK)
18# ifdef CONFIG_DAWN_DTYPE_BOOL
21# ifdef CONFIG_DAWN_DTYPE_INT8
24# ifdef CONFIG_DAWN_DTYPE_UINT8
27# ifdef CONFIG_DAWN_DTYPE_BLOCK
35#if defined(CONFIG_DAWN_DTYPE_INT16) || defined(CONFIG_DAWN_DTYPE_UINT16)
36# ifdef CONFIG_DAWN_DTYPE_INT16
39# ifdef CONFIG_DAWN_DTYPE_UINT16
47#if defined(CONFIG_DAWN_DTYPE_INT32) || defined(CONFIG_DAWN_DTYPE_UINT32) || \
48 defined(CONFIG_DAWN_DTYPE_FLOAT) || defined(CONFIG_DAWN_DTYPE_B16) || \
49 defined(CONFIG_DAWN_DTYPE_UB16)
50# ifdef CONFIG_DAWN_DTYPE_INT32
53# ifdef CONFIG_DAWN_DTYPE_UINT32
56# ifdef CONFIG_DAWN_DTYPE_FLOAT
59# ifdef CONFIG_DAWN_DTYPE_B16
62# ifdef CONFIG_DAWN_DTYPE_UB16
70#if defined(CONFIG_DAWN_DTYPE_INT64) || defined(CONFIG_DAWN_DTYPE_DOUBLE) || \
71 defined(CONFIG_DAWN_DTYPE_UINT64)
72# ifdef CONFIG_DAWN_DTYPE_INT64
75# ifdef CONFIG_DAWN_DTYPE_DOUBLE
78# ifdef CONFIG_DAWN_DTYPE_UINT64
102#ifdef CONFIG_DAWN_DTYPE_BOOL
106#ifdef CONFIG_DAWN_DTYPE_INT8
110#ifdef CONFIG_DAWN_DTYPE_UINT8
114#ifdef CONFIG_DAWN_DTYPE_INT16
118#ifdef CONFIG_DAWN_DTYPE_UINT16
122#ifdef CONFIG_DAWN_DTYPE_INT32
126#ifdef CONFIG_DAWN_DTYPE_UINT32
130#ifdef CONFIG_DAWN_DTYPE_INT64
134#ifdef CONFIG_DAWN_DTYPE_UINT64
138#ifdef CONFIG_DAWN_DTYPE_FLOAT
142#ifdef CONFIG_DAWN_DTYPE_DOUBLE
146#ifdef CONFIG_DAWN_DTYPE_B16
150#ifdef CONFIG_DAWN_DTYPE_UB16
154#ifdef CONFIG_DAWN_DTYPE_CHAR
158#ifdef CONFIG_DAWN_DTYPE_BLOCK
173#ifdef CONFIG_DAWN_DTYPE_BOOL
177#ifdef CONFIG_DAWN_DTYPE_INT8
181#ifdef CONFIG_DAWN_DTYPE_UINT8
185#ifdef CONFIG_DAWN_DTYPE_INT16
189#ifdef CONFIG_DAWN_DTYPE_UINT16
193#ifdef CONFIG_DAWN_DTYPE_INT32
197#ifdef CONFIG_DAWN_DTYPE_UINT32
201#ifdef CONFIG_DAWN_DTYPE_INT64
205#ifdef CONFIG_DAWN_DTYPE_UINT64
209#ifdef CONFIG_DAWN_DTYPE_FLOAT
213#ifdef CONFIG_DAWN_DTYPE_DOUBLE
217#ifdef CONFIG_DAWN_DTYPE_B16
221#ifdef CONFIG_DAWN_DTYPE_UB16
225#ifdef CONFIG_DAWN_DTYPE_CHAR
229#ifdef CONFIG_DAWN_DTYPE_BLOCK
Out-of-tree user-extension hooks for Dawn.
static const char * dtypeToString(uint8_t dtype)
Convert data type to human-readable string.
EObjectDataType
Data types supported by Dawn framework.
@ DTYPE_FLOAT
IEEE 754 single-precision floating point (32-bit).
@ DTYPE_INT32
Signed 32-bit integer (-2147483648 to 2147483647).
@ DTYPE_UINT8
Unsigned 8-bit integer (0 to 255).
@ DTYPE_INT16
Signed 16-bit integer (-32768 to 32767).
@ DTYPE_INT8
Signed 8-bit integer (-128 to 127).
@ DTYPE_ANY
Wildcard data type (matches any actual type).
@ DTYPE_BLOCK
Opaque block/byte-stream data type.
@ DTYPE_UINT64
Unsigned 64-bit integer.
@ DTYPE_UINT16
Unsigned 16-bit integer (0 to 65535).
@ DTYPE_UB16
Unsigned 16.16 fixed-point (32-bit).
@ DTYPE_DOUBLE
IEEE 754 double-precision floating point (64-bit).
@ DTYPE_CHAR
Character/string type (null-terminated, 4-byte aligned).
@ DTYPE_INT64
Signed 64-bit integer.
@ DTYPE_UINT32
Unsigned 32-bit integer (0 to 4294967295).
@ DTYPE_BOOL
Boolean data type (stored in 32-bit container).
@ DTYPE_B16
Signed 16.16 fixed-point (32-bit).
static bool isDtypeSupported(uint8_t dtype)
Check if a data type is enabled in build configuration.
static int getDtypeSize_(const EObjectDataType dtype)
Get byte size for a specific data type.