Compute Library
 22.08
TileDescriptor Struct Reference

Component: Store. More...

#include <ClKernelDescriptors.h>

Collaboration diagram for TileDescriptor:
[legend]

Public Member Functions

 TileDescriptor ()
 
 TileDescriptor (Size2D dims, const Size2D &bound, const ClippingStrategy &clip)
 
bool empty () const
 

Data Fields

Size2D tile_dims {}
 
Size2D boundaries {}
 
ClippingStrategy clipping { ClippingStrategy::TOP_LEFT }
 

Friends

bool operator== (const TileDescriptor &tile0, const TileDescriptor &tile1)
 

Detailed Description

Component: Store.

Definition at line 79 of file ClKernelDescriptors.h.

Constructor & Destructor Documentation

◆ TileDescriptor() [1/2]

TileDescriptor ( )
inline

Definition at line 85 of file ClKernelDescriptors.h.

86  {
87  }

◆ TileDescriptor() [2/2]

Member Function Documentation

◆ empty()

bool empty ( ) const
inline

Definition at line 94 of file ClKernelDescriptors.h.

95  {
96  return (tile_dims.area() == 0) || (boundaries.area() == 0);
97  }
size_t area() const
The area of the image or rectangle calculated as (width * height)
Definition: Size2D.h:54

Friends And Related Function Documentation

◆ operator==

bool operator== ( const TileDescriptor tile0,
const TileDescriptor tile1 
)
friend

Definition at line 98 of file ClKernelDescriptors.h.

99  {
100  return tile0.tile_dims == tile1.tile_dims && tile0.boundaries == tile1.boundaries && tile0.clipping == tile1.clipping;
101  }

Field Documentation

◆ boundaries

Size2D boundaries {}

Definition at line 82 of file ClKernelDescriptors.h.

◆ clipping

Definition at line 83 of file ClKernelDescriptors.h.

◆ tile_dims

Size2D tile_dims {}

Definition at line 81 of file ClKernelDescriptors.h.


The documentation for this struct was generated from the following file: