32 MTL_STORAGE_BUF_TYPE_DEFAULT = 0,
33 MTL_STORAGE_BUF_TYPE_UNIFORMBUF = 1,
34 MTL_STORAGE_BUF_TYPE_VERTBUF = 2,
35 MTL_STORAGE_BUF_TYPE_INDEXBUF = 3,
36 MTL_STORAGE_BUF_TYPE_TEXTURE = 4,
37 } storage_source_ = MTL_STORAGE_BUF_TYPE_DEFAULT;
51 bool has_data_ =
false;
60 id<MTLSharedEvent> gpu_write_fence_ = nil;
61 uint64_t host_read_signal_value_ = 0;
73 void bind(
int slot)
override;
91 MEM_CXX_CLASS_ALLOC_FUNCS(
"MTLStorageBuf");
local_group_size(16, 16) .push_constant(Type texture
flat(Type::VEC4, "color_and_coc1") .flat(Type no_perspective(Type::VEC2, "rect_uv1") .no_perspective(Type draw_view bokeh_lut_tx uniform_buf(6, "DepthOfFieldData", "dof_buf") .storage_buf(0