-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Instatiate macros in the compile tests
This requires suppressing `no-c++11-long-long` in C++98/03 (and `c++98-compat-pedantic` in others).
- Loading branch information
Showing
5 changed files
with
75 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
#include "../../webgpu.h" | ||
|
||
int main(void) {} | ||
#include "main.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
#include "../../webgpu.h" | ||
|
||
int main(void) {} | ||
#include "main.inl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#include "../../webgpu.h" | ||
|
||
// Compile-test - doesn't need to be main(), because we just build a .o. | ||
int main(void) { | ||
// Complile-test instantiation of all of the macros, and check types | ||
{ | ||
WGPUTextureViewDescriptor a; | ||
a.mipLevelCount = WGPU_MIP_LEVEL_COUNT_UNDEFINED; | ||
a.arrayLayerCount = WGPU_ARRAY_LAYER_COUNT_UNDEFINED; | ||
(void) a; | ||
} | ||
{ | ||
WGPUTextureDataLayout a; | ||
uint32_t x = a.bytesPerRow = WGPU_COPY_STRIDE_UNDEFINED; | ||
uint32_t y = a.rowsPerImage = WGPU_COPY_STRIDE_UNDEFINED; | ||
(void) a; | ||
(void) x; | ||
(void) y; | ||
} | ||
{ | ||
WGPUBindGroupEntry a; | ||
uint64_t x = a.size = WGPU_WHOLE_SIZE; | ||
(void) a; | ||
(void) x; | ||
} | ||
{ | ||
uint64_t x = WGPU_WHOLE_MAP_SIZE; | ||
(void) x; | ||
} | ||
{ | ||
WGPULimits a; | ||
uint32_t x = a.maxTextureDimension2D = WGPU_LIMIT_U32_UNDEFINED; | ||
uint64_t y = a.maxBufferSize = WGPU_LIMIT_U64_UNDEFINED; | ||
(void) a; | ||
(void) x; | ||
(void) y; | ||
} | ||
{ | ||
WGPUComputePassTimestampWrites a; | ||
a.beginningOfPassWriteIndex = WGPU_QUERY_SET_INDEX_UNDEFINED; | ||
a.endOfPassWriteIndex = WGPU_QUERY_SET_INDEX_UNDEFINED; | ||
(void) a; | ||
} | ||
} |