Added texture

parent b1225a59
*.jpg filter=lfs diff=lfs merge=lfs -text
......@@ -1743,6 +1743,10 @@ class HelloTriangleApplication {
vkUpdateDescriptorSets(device, 1, &descriptorWrite, 0, nullptr);
}
void createTextureImage() {
//We'll load an image and upload it to a vulkan image object.
}
void initVulkan() {
createInstance(); //The Vulkan instance is the link between application and Vulkan.
setupDebugCallback(); //Setup the debug callback that interfaces with the validation layer.
......@@ -1756,7 +1760,7 @@ class HelloTriangleApplication {
createGraphicsPipeline(); //The graphics pipeline is completely immutable - we have to build it from scratch, for performance.
createFramebuffers(); //Make the framebuffers for all the images in the swap chain - and use the one that corresponds to the retrieved image at draw time.
createCommandPool(); //Commands, like draw/memory transfer, are executed by command buffer objects. All the hard setup can be done in multiple threads, then!
//~ createTextureImage(); //This is where we'll load an image, then upload it to a Vulkan image object.
createTextureImage(); //This is where we'll load an image, then upload it to a Vulkan image object.
createVertexBuffer(); //Vertex buffers store vertex data to be read by the GPU.
createIndexBuffer(); //Index buffers store indices to the vertex buffer, to reduce redundancy.
createUniformBuffer(); //Uniform buffers store data accessible from the shaders.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment