Add samples 16_Vulkan_1_1, CopyBlitImage, CreateDebugReportCallback, DrawTexturedCube (#304)

+ slightly adjust some other samples.
This commit is contained in:
Andreas Süßenbach
2019-03-26 12:24:36 +01:00
committed by Markus Tavenrath
parent 7905145361
commit 2d8483e06f
22 changed files with 1209 additions and 237 deletions

View File

@@ -28,16 +28,17 @@ namespace vk
}
const std::string vertexShaderText = R"(
// vertex shader with (P)osition and (C)olor in and (C)olor out
const std::string vertexShaderText_PC_C = R"(
#version 400
#extension GL_ARB_separate_shader_objects : enable
#extension GL_ARB_shading_language_420pack : enable
layout (std140, binding = 0) uniform bufferVals
layout (std140, binding = 0) uniform buffer
{
mat4 mvp;
} myBufferVals;
} uniformBuffer;
layout (location = 0) in vec4 pos;
layout (location = 1) in vec4 inColor;
@@ -47,11 +48,12 @@ layout (location = 0) out vec4 outColor;
void main()
{
outColor = inColor;
gl_Position = myBufferVals.mvp * pos;
gl_Position = uniformBuffer.mvp * pos;
}
)";
const std::string fragmentShaderText = R"(
// fragment shader with (C)olor in and (C)olor out
const std::string fragmentShaderText_C_C = R"(
#version 400
#extension GL_ARB_separate_shader_objects : enable