Introduce ArrayWrapper?D, replacing ConstExpression?DArrayCopy
+ no explicit copy constructor of structs needed any more + removed assignment operator of structs that don't hold a const sType member (for those, we still need the assignment operator!) + simplified operator==() of structs (pre C++20) + resolved some 32bit warnings
This commit is contained in:
committed by
Markus Tavenrath
parent
b7310d6c19
commit
0ea8a527ba
@@ -86,7 +86,7 @@ int main(int /*argc*/, char ** /*argv*/)
|
||||
model = glm::translate(model, glm::vec3(-1.5f, 1.5f, -1.5f));
|
||||
mvpcs[1] = clip * projection * view * model;
|
||||
|
||||
VkDeviceSize bufferSize = sizeof(glm::mat4x4);
|
||||
vk::DeviceSize bufferSize = sizeof(glm::mat4x4);
|
||||
if (limits.minUniformBufferOffsetAlignment)
|
||||
{
|
||||
bufferSize = (bufferSize + limits.minUniformBufferOffsetAlignment - 1) & ~(limits.minUniformBufferOffsetAlignment - 1);
|
||||
|
||||
Reference in New Issue
Block a user