准备增加纹理格式测试,下一步增加Linear纹理创建,用于试验CPU端修改纹理,以便高效更新文字合集

This commit is contained in:
hyzboy 2019-07-19 18:25:05 +08:00
parent ef0c577214
commit 9e3d64cafc
4 changed files with 8 additions and 6 deletions

View File

@ -22,3 +22,5 @@ CreateProject(7.InlineGeometryScene InlineGeometryScene.cpp)
CreateProject(8.Atomsphere Atomsphere.cpp) CreateProject(8.Atomsphere Atomsphere.cpp)
CreateProject(9.Deferred Deferred.cpp TGATexture.cpp) CreateProject(9.Deferred Deferred.cpp TGATexture.cpp)
CreateProject(10.TextureFormat TextureFormat.cpp TGATexture.cpp)

View File

View File

@ -23,7 +23,7 @@ void main()
vec3 tnorm = (texture(TextureNormal,FragmentTexCoord).xyz*2.0-vec3(1.0))*TBN; vec3 tnorm = (texture(TextureNormal,FragmentTexCoord).xyz*2.0-vec3(1.0))*TBN;
outNormal=vec4(normalize(tnorm),1.0); outNormal=vec4(normalize(tnorm),1.0);
// outNormal=vec4(normalize(FragmentNormal),1.0); //outNormal=vec4(normalize(FragmentNormal),1.0);
outColor=texture(TextureColor,FragmentTexCoord); outColor=texture(TextureColor,FragmentTexCoord);
} }

View File

@ -149,9 +149,9 @@ bool SwapchainRenderTarget::PresentBackbuffer(vulkan::Semaphore *render_complete
{ {
VkSemaphore sem=*render_complete_semaphore; VkSemaphore sem=*render_complete_semaphore;
present_info.waitSemaphoreCount=1; present_info.waitSemaphoreCount =1;
present_info.pWaitSemaphores=&sem; present_info.pWaitSemaphores =&sem;
present_info.pImageIndices=&current_frame; present_info.pImageIndices =&current_frame;
VkResult result=vkQueuePresentKHR(queue,&present_info); VkResult result=vkQueuePresentKHR(queue,&present_info);