Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions backends/vulkan/runtime/graph/ops/glsl/full.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,9 @@

layout(std430) buffer;

layout(set = 0, binding = 0, ${IMAGE_FORMAT[DTYPE]}) uniform PRECISION restrict writeonly ${IMAGE_T[NDIM][DTYPE]} image_out;

layout(set = 0, binding = 1) uniform PRECISION restrict Sizes {
ivec4 sizes;
};

layout(set = 0, binding = 2) uniform PRECISION restrict FillVal {
float fill_value;
};
${layout_declare_tensor(B, "w", "t_out", DTYPE, STORAGE)}
${layout_declare_ubo(B, "ivec4", "sizes")}
${layout_declare_ubo(B, "float", "fill_value")}

layout(local_size_x_id = 0, local_size_y_id = 1, local_size_z_id = 2) in;

Expand All @@ -50,5 +44,5 @@ void main() {
outtex = outtex * valid_idx;
}

imageStore(image_out, POS, outtex);
imageStore(t_out, POS, outtex);
}
1 change: 1 addition & 0 deletions backends/vulkan/runtime/graph/ops/glsl/full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ full:
NDIM: 3
DTYPE: float
PACKING: C_packed
STORAGE: texture3d
generate_variant_forall:
DTYPE:
- VALUE: half
Expand Down
Loading