MCPcopy Create free account
hub / github.com/alibaba/MNN / writeSamplerInfo

Function writeSamplerInfo

source/backend/vulkan/buffer/execution/VulkanRaster.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40static void writeSamplerInfo(SamplerInfo& info, const Tensor::InsideDescribe::Region& sampler) {
41 int sizeTotal = 1;
42 for (int i=0; i<3; ++i) {
43 info.size[i] = sampler.size[i];
44 info.stride[i] = sampler.src.stride[i];
45 info.extent[i] = sampler.dst.stride[i];
46 sizeTotal *= info.size[i];
47 }
48 info.size[3] = sizeTotal;
49 info.stride[3] = sampler.src.offset;
50 info.extent[3] = sampler.dst.offset;
51}
52VulkanRaster::~VulkanRaster() {
53 _recycle();
54}

Callers 2

onEncodeFastMethod · 0.70
onEncodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected