Blender  V3.3
COM_ChunkOrder.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
4 #pragma once
5 
6 #ifdef WITH_CXX_GUARDEDALLOC
7 # include "MEM_guardedalloc.h"
8 #endif
9 
10 #include "COM_ChunkOrderHotspot.h"
11 
12 namespace blender::compositor {
13 
15 struct ChunkOrder {
16  unsigned int index = 0;
17  int x = 0;
18  int y = 0;
19  double distance = 0.0;
20 
21  friend bool operator<(const ChunkOrder &a, const ChunkOrder &b);
22 
23  void update_distance(ChunkOrderHotspot *hotspots, unsigned int len_hotspots);
24 
25 #ifdef WITH_CXX_GUARDEDALLOC
26  MEM_CXX_CLASS_ALLOC_FUNCS("COM:ChunkOrderHotspot")
27 #endif
28 };
29 
30 } // namespace blender::compositor
Read Guarded memory(de)allocation.
static unsigned a[3]
Definition: RandGen.cpp:78
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
friend bool operator<(const ChunkOrder &a, const ChunkOrder &b)
void update_distance(ChunkOrderHotspot *hotspots, unsigned int len_hotspots)