mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-11-11 03:24:30 +00:00
feat: add P-H3-Image generation and editing support (#2272)
This commit is contained in:
1 parent
984eb0686c
commit
3e92bf990a
18 files changed
+421
-41
No files matched your search
@@ -1,16 +1,25 @@
|
||||
#version 450
|
||||
|
||||
layout(local_size_x = 256) in;
|
||||
layout(binding = 0) readonly buffer X { float x[]; };
|
||||
layout(binding = 1) readonly buffer S { float scale[]; };
|
||||
layout(binding = 2) readonly buffer H { float shift[]; };
|
||||
layout(binding = 3) writeonly buffer D { float dst[]; };
|
||||
layout(binding = 0) readonly buffer X {
|
||||
float x[];
|
||||
};
|
||||
layout(binding = 1) readonly buffer S {
|
||||
float scale[];
|
||||
};
|
||||
layout(binding = 2) readonly buffer H {
|
||||
float shift[];
|
||||
};
|
||||
layout(binding = 3) writeonly buffer D {
|
||||
float dst[];
|
||||
};
|
||||
layout(push_constant) uniform Parameters {
|
||||
uint ne[4], scale_ne[4], shift_ne[4];
|
||||
uint x_stride[4], scale_stride[4], shift_stride[4];
|
||||
uint offsets[4];
|
||||
uint count, has_shift;
|
||||
} p;
|
||||
}
|
||||
p;
|
||||
|
||||
void main() {
|
||||
uint group = gl_WorkGroupID.y * gl_NumWorkGroups.x + gl_WorkGroupID.x;
|
||||
|
||||
Reference in new issue
Block a user