Skip to content

Commit

Permalink
pick: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hanatos committed Feb 21, 2025
1 parent 8c46fd6 commit c9b1c84
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/pipe/modules/pick/display.comp
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,10 @@ layout(std140, set = 0, binding = 1) uniform params_t
float picked[60]; // actually 3-strided colours
} params;

layout( // input picked colour buffer
set = 1, binding = 0
) uniform sampler2D img_in;
layout(set = 1, binding = 0) uniform sampler2D img_in;
layout(set = 1, binding = 1) uniform sampler2D img_coeff;
layout(set = 1, binding = 2) uniform writeonly image2D img_out;

layout( // rgb to sigmoid lut
set = 1, binding = 1
) uniform sampler2D img_coeff;

layout( // output buffer
set = 1, binding = 2
) uniform writeonly image2D img_out;

// TODO: put in shared.glsl?
void tri2quad(inout vec2 tc)
{
tc.y = tc.y / (1.0-tc.x);
Expand Down

0 comments on commit c9b1c84

Please sign in to comment.