Files
filament/libs/utils/include/utils
Mathias Agopian f2ba48f4a7 Program::shader() now only takes a void* + size
Program::shader() was taking a string before which didn't make sense
for spirv.  Now it's just a blob, in the case of GL/Metal, the blob
must be a null terminated c-string, and the size must include the
terminating null character.

This fixes an out-of-bound access in ShaderBuilder::getShader() (which
doesn't exist anymore), because it was creating a CString passing
a size that included the null terminating char, which is not was CString
expects. CString can now assert() in that case.


driver::Program now uses a std::vector<> for storage, which we should
fix at some point (b/c it's a public header). CString was not suited to
store binary blobs.
2019-03-04 19:00:26 -08:00
..
2018-08-03 10:38:22 -07:00
2018-08-06 10:36:54 -07:00
2018-12-04 17:56:37 -08:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-10 20:53:58 -07:00
2019-01-18 13:07:54 -08:00
2018-08-03 10:38:22 -07:00
2018-12-11 17:44:03 -08:00
2018-08-10 20:53:58 -07:00
2018-08-20 16:45:16 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00
2018-08-10 20:53:58 -07:00
2018-08-03 10:38:22 -07:00
2018-08-03 10:38:22 -07:00