MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / test_all

Method test_all

tests/cgpu/DeviceInitialize/DeviceInitialize.cpp:104–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103template <ECGPUBackend backend>
104void DeviceInitializeTest<backend>::test_all()
105{
106 SUBCASE("InstanceCreationDbgGpu")
107 {
108 auto inst = init_instance(backend, true, true);
109 EXPECT_NE(inst, CGPU_NULLPTR);
110 cgpu_free_instance(inst);
111 }
112
113 SUBCASE("InstanceCreationDbg")
114 {
115 auto inst = init_instance(backend, true, false);
116 EXPECT_NE(inst, CGPU_NULLPTR);
117 cgpu_free_instance(inst);
118 }
119
120 SUBCASE("InstanceCreation")
121 {
122 auto inst = init_instance(backend, false, false);
123 EXPECT_NE(inst, CGPU_NULLPTR);
124 cgpu_free_instance(inst);
125 }
126
127 SUBCASE("AdapterEnum")
128 {
129 auto instance = init_instance(backend, true, true);
130 REQUIRE(enum_adapters(instance) > 0);
131 cgpu_free_instance(instance);
132 }
133
134 SUBCASE("CreateDeviceDbgGpu")
135 {
136 auto inst = init_instance(backend, true, true);
137 EXPECT_NE(inst, CGPU_NULLPTR);
138 test_create_device(inst, false, false);
139 cgpu_free_instance(inst);
140 }
141
142 SUBCASE("CreateDevice")
143 {
144 auto inst = init_instance(backend, false, false);
145 EXPECT_NE(inst, CGPU_NULLPTR);
146 test_create_device(inst, false, false);
147 cgpu_free_instance(inst);
148 }
149
150 SUBCASE("CreateDeviceDbg")
151 {
152 auto inst = init_instance(backend, true, false);
153 EXPECT_NE(inst, CGPU_NULLPTR);
154 test_create_device(inst, false, false);
155 cgpu_free_instance(inst);
156 }
157
158 SUBCASE("QueryQueueCount")
159 {
160 auto instance = init_instance(backend, true, true);
161 uint32_t adapters_count = 0;

Callers

nothing calls this directly

Calls 9

init_instanceFunction · 0.85
cgpu_free_instanceFunction · 0.85
enum_adaptersFunction · 0.85
test_create_deviceFunction · 0.85
cgpu_enum_adaptersFunction · 0.85
cgpu_query_queue_countFunction · 0.85
resizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected