准备增加纹理格式测试,下一步增加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

@ -21,4 +21,6 @@ CreateProject(7.InlineGeometryScene InlineGeometryScene.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;
outNormal=vec4(normalize(tnorm),1.0);
// outNormal=vec4(normalize(FragmentNormal),1.0);
//outNormal=vec4(normalize(FragmentNormal),1.0);
outColor=texture(TextureColor,FragmentTexCoord);
}

View File

@ -86,7 +86,7 @@ bool SubmitQueue::Submit(const VkCommandBuffer *cmd_buf,const uint32_t cb_count,
return(result==VK_SUCCESS);
}
bool SubmitQueue::Submit(const VkCommandBuffer &cmd_buf,vulkan::Semaphore *wait_sem,vulkan::Semaphore *complete_sem)
{
return Submit(&cmd_buf,1,wait_sem,complete_sem);
@ -149,9 +149,9 @@ bool SwapchainRenderTarget::PresentBackbuffer(vulkan::Semaphore *render_complete
{
VkSemaphore sem=*render_complete_semaphore;
present_info.waitSemaphoreCount=1;
present_info.pWaitSemaphores=&sem;
present_info.pImageIndices=&current_frame;
present_info.waitSemaphoreCount =1;
present_info.pWaitSemaphores =&sem;
present_info.pImageIndices =&current_frame;
VkResult result=vkQueuePresentKHR(queue,&present_info);