Back to Mnn

MNN: halide_buffer_t结构体 参考

doc/API/html/structhalide__buffer__t.html

3.5.03.0 KB
Original Source

| MNN 1.0 |

Public 属性 | [所有成员列表](structhalide buffer t-members.html)

halide_buffer_t结构体 参考

#include <HalideRuntime.h>

|

Public 属性

| | uint64_t | [device](structhalide buffer t.html#a51aa231b39c37cb777369dda8825030f) | | | | const struct [halide_device_interface_t](structhalide device interface__t.html) * | device_interface | | | | uint8_t * | [host](structhalide buffer t.html#a6e3420b357ead1398489ea508f3ac4a9) | | | | uint64_t | [flags](structhalide buffer t.html#acbee1a8a419c5ba3dcaedfabb3817c8c) | | | | struct [halide_type_t](structhalide type t.html) | [type](structhalide buffer t.html#a7aa90af2694ee99f6a097eaecbd7dcc2) | | | | int32_t | [dimensions](structhalide buffer t.html#a15a026342a3f8402f06d8b0f9f1391dc) | | | | [halide_dimension_t](structhalide dimension t.html) * | [dim](structhalide buffer t.html#a36ad75ba5fff094906f338aa48722bbe) | | | | void * | [padding](structhalide buffer t.html#a0a1207bdde5e92c5b367a92c118a76c3) | | |

详细描述

The raw representation of an image passed around by generated Halide code. It includes some stuff to track whether the image is not actually in main memory, but instead on a device (like a GPU). For a more convenient C++ wrapper, use Halide::Buffer<T>.

类成员变量说明

device

| uint64_t halide_buffer_t::device |

A device-handle for e.g. GPU memory used to back this buffer.

device_interface

| const struct [halide_device_interface_t](structhalide device interface__t.html)* halide_buffer_t::device_interface |

The interface used to interpret the above handle.

dim

| [halide_dimension_t](structhalide dimension t.html)* halide_buffer_t::dim |

The shape of the buffer. Halide does not own this array - you must manage the memory for it yourself.

dimensions

| int32_t halide_buffer_t::dimensions |

The dimensionality of the buffer.

flags

| uint64_t halide_buffer_t::flags |

flags with various meanings.

host

| uint8_t* halide_buffer_t::host |

A pointer to the start of the data in main memory. In terms of the Halide coordinate system, this is the address of the min coordinates (defined below).

padding

| void* halide_buffer_t::padding |

Pads the buffer up to a multiple of 8 bytes

type

| struct [halide_type_t](structhalide type t.html) halide_buffer_t::type |

The type of each buffer element.


该结构体的文档由以下文件生成:


制作者 1.8.15