Skip to content

Commit

Permalink
fix vulkan frag
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed May 6, 2022
1 parent c678801 commit d1a8d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lanox2d/core/device/vulkan/pipelines/texture.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ lx_vk_pipeline_ref_t lx_vk_pipeline_texture(lx_vulkan_device_t* device) {
push_constant_range.offset = 0;
push_constant_range.size = 4 * sizeof(lx_float_t);

// create pipeline, TODO
// create pipeline
VkPipelineLayoutCreateInfo pipeline_layout_info = {};
VkDescriptorSetLayout descriptor_set_layouts[2];
descriptor_set_layouts[0] = lx_vk_descriptor_sets_layout(device->descriptor_sets_uniform);
Expand Down
2 changes: 1 addition & 1 deletion src/lanox2d/core/device/vulkan/shaders/texture.frag
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ layout(push_constant) uniform PushConsts {
} pushConsts;

layout(location = 0) in vec4 vTexcoords;
layout(binding = 0) uniform sampler2D uSampler;
layout(set = 1, binding = 0) uniform sampler2D uSampler;

layout(location = 0) out vec4 finalColor;

Expand Down

0 comments on commit d1a8d1f

Please sign in to comment.