dymokomi/luce-gpu
Source of release 0.5.6
0.5.6 / src / gpu / compute_shaders.lucb
#==============================================================================================
#
# compute_shaders - Embedded GPU shaders
#
# DESCRIPTION:
# Generated by luce-gpu/tools/embed_shaders.py from fill.comp; do not edit.
#
#==============================================================================================
# mark: fill: compute kernel ==================================================================
let fill_comp_words: u32[327] = [
0x07230203, 0x00010000, 0x0008000b, 0x0000002e, 0x00000000, 0x00020011, 0x00000001, 0x0006000b,
0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001,
0x0006000f, 0x00000005, 0x00000004, 0x6e69616d, 0x00000000, 0x0000000b, 0x00060010, 0x00000004,
0x00000011, 0x00000040, 0x00000001, 0x00000001, 0x00030003, 0x00000002, 0x000001c2, 0x00040005,
0x00000004, 0x6e69616d, 0x00000000, 0x00040005, 0x00000008, 0x65646e69, 0x00000078, 0x00080005,
0x0000000b, 0x475f6c67, 0x61626f6c, 0x766e496c, 0x7461636f, 0x496e6f69, 0x00000044, 0x00040005,
0x00000011, 0x6c6c6946, 0x00000000, 0x00050006, 0x00000011, 0x00000000, 0x73726966, 0x00000074,
0x00050006, 0x00000011, 0x00000001, 0x6e756f63, 0x00000074, 0x00050006, 0x00000011, 0x00000002,
0x756c6176, 0x00000065, 0x00040005, 0x00000013, 0x6c6c6966, 0x00000000, 0x00040005, 0x0000001e,
0x64726f57, 0x00000073, 0x00050006, 0x0000001e, 0x00000000, 0x64726f77, 0x00000073, 0x00030005,
0x00000020, 0x00000000, 0x00040047, 0x0000000b, 0x0000000b, 0x0000001c, 0x00030047, 0x00000011,
0x00000002, 0x00050048, 0x00000011, 0x00000000, 0x00000023, 0x00000000, 0x00050048, 0x00000011,
0x00000001, 0x00000023, 0x00000004, 0x00050048, 0x00000011, 0x00000002, 0x00000023, 0x00000008,
0x00040047, 0x0000001d, 0x00000006, 0x00000004, 0x00030047, 0x0000001e, 0x00000003, 0x00040048,
0x0000001e, 0x00000000, 0x00000019, 0x00050048, 0x0000001e, 0x00000000, 0x00000023, 0x00000000,
0x00030047, 0x00000020, 0x00000019, 0x00040047, 0x00000020, 0x00000021, 0x00000000, 0x00040047,
0x00000020, 0x00000022, 0x00000000, 0x00040047, 0x0000002d, 0x0000000b, 0x00000019, 0x00020013,
0x00000002, 0x00030021, 0x00000003, 0x00000002, 0x00040015, 0x00000006, 0x00000020, 0x00000000,
0x00040020, 0x00000007, 0x00000007, 0x00000006, 0x00040017, 0x00000009, 0x00000006, 0x00000003,
0x00040020, 0x0000000a, 0x00000001, 0x00000009, 0x0004003b, 0x0000000a, 0x0000000b, 0x00000001,
0x0004002b, 0x00000006, 0x0000000c, 0x00000000, 0x00040020, 0x0000000d, 0x00000001, 0x00000006,
0x0005001e, 0x00000011, 0x00000006, 0x00000006, 0x00000006, 0x00040020, 0x00000012, 0x00000009,
0x00000011, 0x0004003b, 0x00000012, 0x00000013, 0x00000009, 0x00040015, 0x00000014, 0x00000020,
0x00000001, 0x0004002b, 0x00000014, 0x00000015, 0x00000001, 0x00040020, 0x00000016, 0x00000009,
0x00000006, 0x00020014, 0x00000019, 0x0003001d, 0x0000001d, 0x00000006, 0x0003001e, 0x0000001e,
0x0000001d, 0x00040020, 0x0000001f, 0x00000002, 0x0000001e, 0x0004003b, 0x0000001f, 0x00000020,
0x00000002, 0x0004002b, 0x00000014, 0x00000021, 0x00000000, 0x0004002b, 0x00000014, 0x00000026,
0x00000002, 0x00040020, 0x00000029, 0x00000002, 0x00000006, 0x0004002b, 0x00000006, 0x0000002b,
0x00000040, 0x0004002b, 0x00000006, 0x0000002c, 0x00000001, 0x0006002c, 0x00000009, 0x0000002d,
0x0000002b, 0x0000002c, 0x0000002c, 0x00050036, 0x00000002, 0x00000004, 0x00000000, 0x00000003,
0x000200f8, 0x00000005, 0x0004003b, 0x00000007, 0x00000008, 0x00000007, 0x00050041, 0x0000000d,
0x0000000e, 0x0000000b, 0x0000000c, 0x0004003d, 0x00000006, 0x0000000f, 0x0000000e, 0x0003003e,
0x00000008, 0x0000000f, 0x0004003d, 0x00000006, 0x00000010, 0x00000008, 0x00050041, 0x00000016,
0x00000017, 0x00000013, 0x00000015, 0x0004003d, 0x00000006, 0x00000018, 0x00000017, 0x000500b0,
0x00000019, 0x0000001a, 0x00000010, 0x00000018, 0x000300f7, 0x0000001c, 0x00000000, 0x000400fa,
0x0000001a, 0x0000001b, 0x0000001c, 0x000200f8, 0x0000001b, 0x00050041, 0x00000016, 0x00000022,
0x00000013, 0x00000021, 0x0004003d, 0x00000006, 0x00000023, 0x00000022, 0x0004003d, 0x00000006,
0x00000024, 0x00000008, 0x00050080, 0x00000006, 0x00000025, 0x00000023, 0x00000024, 0x00050041,
0x00000016, 0x00000027, 0x00000013, 0x00000026, 0x0004003d, 0x00000006, 0x00000028, 0x00000027,
0x00060041, 0x00000029, 0x0000002a, 0x00000020, 0x00000021, 0x00000025, 0x0003003e, 0x0000002a,
0x00000028, 0x000200f9, 0x0000001c, 0x000200f8, 0x0000001c, 0x000100fd, 0x00010038,
]
let fill_comp_msl: c.str = "#include <metal_stdlib>\n#include <simd/simd.h>\n\nusing namespace metal;\n\nstruct Fill\n{\n uint first;\n uint count;\n uint value;\n};\n\nstruct Words\n{\n uint words[1];\n};\n\nconstant uint3 gl_WorkGroupSize [[maybe_unused]] = uint3(64u, 1u, 1u);\n\nkernel void luce_compute(constant Fill& fill [[buffer(30)]], device Words& _32 [[buffer(0)]], uint3 gl_GlobalInvocationID [[thread_position_in_grid]])\n{\n uint index = gl_GlobalInvocationID.x;\n if (index < fill.count)\n {\n _32.words[fill.first + index] = fill.value;\n }\n}\n\n"
let fill_comp_group: u32[3] = [64, 1, 1]
let fill_comp_bindings: u8[16] = [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
let fill_comp_fast_math: bool = false
let fill_comp_table: bool = false