Use Vulkan Blit command rather than Copy

This commit is contained in:
Jack Andersen
2016-06-28 16:00:02 -10:00
parent b04257c992
commit fba6d10b37
3 changed files with 50 additions and 28 deletions

View File

@@ -239,8 +239,8 @@ struct TestApplicationCallback : IApplicationCallback
/* Make Tri-strip VBO */
struct Vert
{
float pos[3];
float uv[2];
float pos[4];
float uv[4];
};
static const Vert quad[4] =
{
@@ -255,8 +255,8 @@ struct TestApplicationCallback : IApplicationCallback
/* Make vertex format */
VertexElementDescriptor descs[2] =
{
{vbo, nullptr, VertexSemantic::Position3},
{vbo, nullptr, VertexSemantic::UV2}
{vbo, nullptr, VertexSemantic::Position4},
{vbo, nullptr, VertexSemantic::UV4}
};
IVertexFormat* vfmt = ctx.newVertexFormat(2, descs);