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