MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / checkBufferSize

Function checkBufferSize

src/bindings/python/PyUtils.cpp:214–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void checkBufferSize(const py::buffer_info & info, py::ssize_t numEntries)
215{
216 if (info.size != numEntries)
217 {
218 std::ostringstream os;
219 os << "Incompatible buffer dimensions: expected " << numEntries;
220 os << " entries, but received " << info.size << " entries";
221 throw std::runtime_error(os.str().c_str());
222 }
223}
224
225unsigned long getBufferLut3DGridSize(const py::buffer_info & info)
226{

Callers 3

bindPyGpuShaderDescFunction · 0.85
getBufferDataFunction · 0.85
bindPyPackedImageDescFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected