replaced "static unsigned const" to "static const unsigned" so that SWIG can generate wrappers without a syntax error

This commit is contained in:
0x0f0f0f 2020-11-09 09:42:39 +01:00
parent 92338f7051
commit 8a0c63cc64
6 changed files with 126 additions and 126 deletions

View file

@ -108,7 +108,7 @@ static const char* KOMPUTE_LOG_TAG = "KomputeLog";
namespace kp {
namespace shader_data {
static unsigned const char shaders_glsl_opmult_comp_spv[] = {
static const unsigned char shaders_glsl_opmult_comp_spv[] = {
0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x08, 0x00,
0x2e, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00,
0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00,
@ -232,7 +232,7 @@ static unsigned const char shaders_glsl_opmult_comp_spv[] = {
0x17, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x03, 0x00, 0x28, 0x00, 0x00, 0x00,
0x27, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x01, 0x00, 0x38, 0x00, 0x01, 0x00
};
static unsigned const int shaders_glsl_opmult_comp_spv_len = 1464;
static const unsigned int shaders_glsl_opmult_comp_spv_len = 1464;
}
}
#endif // define SHADEROP_SHADEROPMULT_HPP
@ -262,7 +262,7 @@ static unsigned const int shaders_glsl_opmult_comp_spv_len = 1464;
namespace kp {
namespace shader_data {
static unsigned const char shaders_glsl_logisticregression_comp_spv[] = {
static const unsigned char shaders_glsl_logisticregression_comp_spv[] = {
0x03, 0x02, 0x23, 0x07, 0x00, 0x00, 0x01, 0x00, 0x08, 0x00, 0x08, 0x00,
0xb3, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x11, 0x00, 0x02, 0x00,
0x01, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x06, 0x00, 0x01, 0x00, 0x00, 0x00,
@ -674,7 +674,7 @@ static unsigned const char shaders_glsl_logisticregression_comp_spv[] = {
0x06, 0x00, 0x00, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00,
0xfe, 0x00, 0x02, 0x00, 0x3e, 0x00, 0x00, 0x00, 0x38, 0x00, 0x01, 0x00
};
static unsigned const int shaders_glsl_logisticregression_comp_spv_len = 4920;
static const unsigned int shaders_glsl_logisticregression_comp_spv_len = 4920;
}
}
#endif // define SHADEROP_SHADERLOGISTICREGRESSION_HPP