MCPcopy Create free account
hub / github.com/KomputeProject/kompute / setPushConstants

Method setPushConstants

src/include/kompute/Algorithm.hpp:196–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194 */
195 template<typename T>
196 void setPushConstants(const std::vector<T>& pushConstants)
197 {
198 uint32_t memorySize = sizeof(decltype(pushConstants.back()));
199 uint32_t size = pushConstants.size();
200
201 this->setPushConstants(pushConstants.data(), size, memorySize);
202 }
203
204 /**
205 * Sets the push constants to the new value provided to use in the next

Callers 1

recordMethod · 0.80

Calls 2

sizeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected