KStocky / ShaderTestFramework

An automation testing framework for testing shader code
MIT License
20 stars 1 forks source link

Use Templated stores when a byte writer does not exist #21

Closed KStocky closed 5 months ago

KStocky commented 5 months ago

Is your feature request related to a problem? Please describe. Currently, if a user-defined type does not have a byte writer, then its data can not be written to the assert data buffer. This is because it does not make use of templated stores.

Describe the solution you'd like If we instead just write the bytes using templated stores if a byte writer does not exist then we make supporting custom types much easier. byte writers are still useful for types that represent more than their data members. e.g. a span that has the begin and end indices that point to some global array.