随笔分类 -  vulkan

摘要:vs shader如下面格式: //vs #version 450 layout(binding = 0) uniform UniformBufferObject { mat4 model; mat4 view; mat4 proj; } ubo; layout(location = 0) in v 阅读全文
posted @ 2023-09-19 11:13 风中奔跑 阅读(80) 评论(0) 推荐(0)
摘要:如果shader中的资源是这么排布的: //vs layout(set = 0, binding = 0, std140) uniform UBO { mat4 projection; mat4 view; mat4 model; } ubo; layout(location = 0) in vec 阅读全文
posted @ 2023-08-09 23:26 风中奔跑 阅读(215) 评论(0) 推荐(0)