convert RunTime::Buffer to Halide::Buffer #5266
Replies: 2 comments
-
A Halide::Buffer is a named shared pointer to a Halide::Runtime::Buffer To convert from a Halide::Runtime::Buffer to a Halide::Buffer you do something like:
To convert back, Halide::Buffer has a get() method that returns a pointer to the underlying Runtime::Buffer. |
Beta Was this translation helpful? Give feedback.
-
that's cool! thanks a lot. there is an another little question about the efficiency of converting interleaved to planar. i have compared halide func method and traditional method with pointer assginment, it turns out the func way cost twice than the point assignment method. So is that has a more effective way to make it happend? ##1. halide func
} ##2. pointer assignment
} |
Beta Was this translation helpful? Give feedback.
-
Is that any different between Halide::RunTime::Buffer and Halide::Buffer ?
how can i convert RunTime::Buffer to Halide::Buffer or Halide::Buffer to RunTime::Buffer?
Beta Was this translation helpful? Give feedback.
All reactions