mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 10:25:55 +08:00
Suppress clang compiler warnings.
This commit is contained in:
parent
c261563b0b
commit
cf6e07b1ec
@ -566,7 +566,7 @@ static void Dump(const tinygltf::Scene &scene) {
|
|||||||
it->second.source.end());
|
it->second.source.end());
|
||||||
|
|
||||||
for (; sourceIt != sourceItEnd; ++sourceIt) {
|
for (; sourceIt != sourceItEnd; ++sourceIt) {
|
||||||
shader_source += *sourceIt;
|
shader_source += static_cast<char>(*sourceIt);
|
||||||
if (*sourceIt == '\n') {
|
if (*sourceIt == '\n') {
|
||||||
shader_source += Indent(3);
|
shader_source += Indent(3);
|
||||||
}
|
}
|
||||||
|
@ -168,6 +168,7 @@ typedef struct {
|
|||||||
int wrapS;
|
int wrapS;
|
||||||
int wrapT;
|
int wrapT;
|
||||||
int wrapR; // TinyGLTF extension
|
int wrapR; // TinyGLTF extension
|
||||||
|
int pad0;
|
||||||
} Sampler;
|
} Sampler;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
@ -277,6 +278,7 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
std::string name;
|
std::string name;
|
||||||
int type;
|
int type;
|
||||||
|
int pad0;
|
||||||
std::vector<unsigned char> source;
|
std::vector<unsigned char> source;
|
||||||
} Shader;
|
} Shader;
|
||||||
|
|
||||||
@ -289,9 +291,11 @@ typedef struct {
|
|||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
int count;
|
int count;
|
||||||
|
int pad0;
|
||||||
std::string node;
|
std::string node;
|
||||||
std::string semantic;
|
std::string semantic;
|
||||||
int type;
|
int type;
|
||||||
|
int pad1;
|
||||||
Parameter value;
|
Parameter value;
|
||||||
} TechniqueParameter;
|
} TechniqueParameter;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user