22 size = 4 *
sizeof(
float);
27 size = 3 * 4 *
sizeof(
float);
30 else if (comp == 16) {
32 size = 4 * 4 *
sizeof(
float);
36 size = comp *
sizeof(
float);
45 size_t max_alignment = 0;
51 max_alignment =
max_uu(max_alignment, alignment);
58 data_ =
reinterpret_cast<uint8_t *
>(
63 memset(data_, 0xFD, size_);
MTLPushConstantBuf(const shader::ShaderCreateInfo &info)
int append(shader::ShaderCreateInfo::PushConst push_constant)
BLI_INLINE int to_component_count(const Type &type)
static size_t padded_size(const shader::ShaderCreateInfo::PushConst &push_constant, size_t &alignment)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
MINLINE uint max_uu(uint a, uint b)
MINLINE uint ceil_to_multiple_u(uint a, uint b)
void *(*) MEM_new_array_zeroed_aligned(size_t len, size_t size, size_t alignment, const char *str) ATTR_WARN_UNUSED_RESULT ATTR_ALLOC_SIZE(1
KERNEL_FEATURE_LIGHT_PASSES KERNEL_FEATURE_PATH_GUIDING float
Describe inputs & outputs, stage interfaces, resources and sources of a shader. If all data is correc...
Vector< PushConst, 0 > push_constants_