Skip to content

Commit

Permalink
Fixed compile error of union declaration on Apple platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Jul 4, 2023
1 parent 8f6aee7 commit 79c87dc
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions include/LLGL/Backend/Metal/NativeCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,19 @@ struct NativeCommand
{
NativeCommandType type;

struct TessFactorBuffer
{
/**
\brief Specifies the buffer slot for the internal tessellation factor buffer. By default 30, which is the maximum buffer slot.
\remarks In the respective Metal tessellation kernel,
this must refer to a buffer of type \c MTLTriangleTessellationFactorsHalf or \c MTLQuadTessellationFactorsHalf.
*/
std::uint32_t slot;
};

union
{
struct TessFactorBuffer
{
/**
\brief Specifies the buffer slot for the internal tessellation factor buffer. By default 30, which is the maximum buffer slot.
\remarks In the respective Metal tessellation kernel,
this must refer to a buffer of type \c MTLTriangleTessellationFactorsHalf or \c MTLQuadTessellationFactorsHalf.
*/
std::uint32_t slot;
}
tessFactorBuffer;
TessFactorBuffer tessFactorBuffer;
};
};

Expand Down

0 comments on commit 79c87dc

Please sign in to comment.