mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 03:55:26 +00:00
Fixed bug in buffer memory allocation code in tutorials 04 and 05. Modified ImageParameters structure (renamed "ImageView" member to "View", added "Sampler" member) and updated tutorial 03, 04 and 05. Fixed typos in comments.
This commit is contained in:
@@ -457,7 +457,7 @@ namespace ApiWithoutSecrets {
|
||||
|
||||
bool Tutorial04::AllocateBufferMemory( VkBuffer buffer, VkDeviceMemory *memory ) {
|
||||
VkMemoryRequirements buffer_memory_requirements;
|
||||
vkGetBufferMemoryRequirements( GetDevice(), Vulkan.VertexBuffer.Handle, &buffer_memory_requirements );
|
||||
vkGetBufferMemoryRequirements( GetDevice(), buffer, &buffer_memory_requirements );
|
||||
|
||||
VkPhysicalDeviceMemoryProperties memory_properties;
|
||||
vkGetPhysicalDeviceMemoryProperties( GetPhysicalDevice(), &memory_properties );
|
||||
@@ -482,7 +482,7 @@ namespace ApiWithoutSecrets {
|
||||
}
|
||||
|
||||
bool Tutorial04::PrepareFrame( VkCommandBuffer command_buffer, const ImageParameters &image_parameters, VkFramebuffer &framebuffer ) {
|
||||
if( !CreateFramebuffer( framebuffer, image_parameters.ImageView ) ) {
|
||||
if( !CreateFramebuffer( framebuffer, image_parameters.View ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user