mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-18 17:35:44 +00:00
Add True and False tests for bitwise enums
This commit is contained in:
@@ -1944,7 +1944,7 @@ struct VulkanVertexFormat {
|
||||
int semantic = int(elemin->semantic & boo::VertexSemantic::SemanticMask);
|
||||
attribute.location = i;
|
||||
attribute.format = SEMANTIC_TYPE_TABLE[semantic];
|
||||
if ((elemin->semantic & boo::VertexSemantic::Instanced) != boo::VertexSemantic::None) {
|
||||
if (True(elemin->semantic & boo::VertexSemantic::Instanced)) {
|
||||
attribute.binding = 1;
|
||||
attribute.offset = m_instStride;
|
||||
m_instStride += SEMANTIC_SIZE_TABLE[semantic];
|
||||
|
||||
Reference in New Issue
Block a user