Added test model and shaders.

This commit is contained in:
Artem Kharytoniuk 2017-03-16 22:33:49 +02:00
parent b482e778ff
commit 9d0f0134b0
5 changed files with 1849 additions and 2 deletions

BIN
data/frag.spv Normal file

Binary file not shown.

1847
data/model.obj Normal file

File diff suppressed because it is too large Load Diff

BIN
data/texture.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 549 KiB

BIN
data/vert.spv Normal file

Binary file not shown.

View File

@ -462,8 +462,8 @@ void Vulkan_Demo::create_pipeline_layout() {
} }
void Vulkan_Demo::create_pipeline() { void Vulkan_Demo::create_pipeline() {
Shader_Module vertex_shader("../../shaders/vert.spv"); Shader_Module vertex_shader("../../data/vert.spv");
Shader_Module fragment_shader("../../shaders/frag.spv"); Shader_Module fragment_shader("../../data/frag.spv");
auto get_shader_stage_desc = [](VkShaderStageFlagBits stage, VkShaderModule shader_module, const char* entry) { auto get_shader_stage_desc = [](VkShaderStageFlagBits stage, VkShaderModule shader_module, const char* entry) {
VkPipelineShaderStageCreateInfo desc; VkPipelineShaderStageCreateInfo desc;