| 61 | static uint32_t CalculateStd140StructSize(const ShaderResourceTypeInfo* type_infos, uint32_t type_index, bool update_offsets); |
| 62 | |
| 63 | static bool SelectAdapterByFamily(AdapterFamily family) |
| 64 | { |
| 65 | if (family != ADAPTER_FAMILY_NONE) |
| 66 | { |
| 67 | GraphicsAdapter* next = g_adapter_list; |
| 68 | |
| 69 | while(next) |
| 70 | { |
| 71 | if (next->m_Family == family) |
| 72 | { |
| 73 | if (next->m_IsSupportedCb()) |
| 74 | { |
| 75 | g_functions = next->m_RegisterCb(); |
| 76 | g_adapter = next; |
| 77 | return true; |
| 78 | } |
| 79 | } |
| 80 | next = next->m_Next; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | return false; |
| 85 | } |
| 86 | |
| 87 | uint32_t GetLinkedGraphicsAdapterCount() |
| 88 | { |