准备增加纹理格式测试,下一步增加Linear纹理创建,用于试验CPU端修改纹理,以便高效更新文字合集
This commit is contained in:
parent
ef0c577214
commit
9e3d64cafc
@ -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)
|
0
example/Vulkan/TextureFormat.cpp
Normal file
0
example/Vulkan/TextureFormat.cpp
Normal 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);
|
||||
}
|
||||
|
@ -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=¤t_frame;
|
||||
present_info.waitSemaphoreCount =1;
|
||||
present_info.pWaitSemaphores =&sem;
|
||||
present_info.pImageIndices =¤t_frame;
|
||||
|
||||
VkResult result=vkQueuePresentKHR(queue,&present_info);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user