const XGL_PHYSICAL_GPU_PROPERTIES *props = &gpu->props;
printf("XGL_PHYSICAL_GPU_PROPERTIES\n");
- printf("\tstructSize = %zu\n", props->structSize);
printf("\tapiVersion = %u\n", props->apiVersion);
printf("\tdriverVersion = %u\n", props->driverVersion);
printf("\tvendorId = 0x%04x\n", props->vendorId);
const XGL_PHYSICAL_GPU_QUEUE_PROPERTIES *props = &gpu->queue_props[id];
printf("XGL_PHYSICAL_GPU_QUEUE_PROPERTIES[%d]\n", id);
- printf("\tstructSize = %zu\n", props->structSize);
printf("\tqueueFlags = %c%c%c%c\n",
(props->queueFlags & XGL_QUEUE_GRAPHICS_BIT) ? 'G' : '.',
(props->queueFlags & XGL_QUEUE_COMPUTE_BIT) ? 'C' : '.',
const XGL_PHYSICAL_GPU_MEMORY_PROPERTIES *props = &gpu->memory_props;
printf("XGL_PHYSICAL_GPU_MEMORY_PROPERTIES\n");
- printf("\tstructSize = %zu\n", props->structSize);
printf("\tsupportsMigration = %u\n", props->supportsMigration);
printf("\tsupportsPinning = %u\n", props->supportsPinning);
}
typedef struct _XGL_PHYSICAL_GPU_PROPERTIES
{
- XGL_SIZE structSize;
XGL_UINT32 apiVersion;
XGL_UINT32 driverVersion;
XGL_UINT32 vendorId;
typedef struct _XGL_PHYSICAL_GPU_QUEUE_PROPERTIES
{
- XGL_SIZE structSize; // Size of structure in bytes
XGL_FLAGS queueFlags; // XGL_QUEUE_FLAGS
XGL_UINT queueCount;
XGL_UINT maxAtomicCounters;
typedef struct _XGL_PHYSICAL_GPU_MEMORY_PROPERTIES
{
- XGL_SIZE structSize; // Size of structure in bytes
XGL_BOOL supportsMigration;
XGL_BOOL supportsPinning;
} XGL_PHYSICAL_GPU_MEMORY_PROPERTIES;