Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
talvos::PtrMatrixLayout Struct Reference

Structure to describe the memory layout of a matrix. More...

#include <talvos/Object.h>

Public Types

enum  { ROW_MAJOR, COL_MAJOR }
 Specifies the order of the elements in memory. More...
 

Public Member Functions

 operator bool () const
 Convenience overload to check whether the matrix layout has been set. More...
 

Public Attributes

enum talvos::PtrMatrixLayout:: { ... }  Order
 Specifies the order of the elements in memory. More...
 
uint32_t Stride = 0
 The stride in bytes between columns (COL_MAJOR) or rows (ROW_MAJOR). More...
 

Detailed Description

Structure to describe the memory layout of a matrix.

Used for objects that hold pointers to matrix or vector types.

Definition at line 24 of file Object.h.

Member Enumeration Documentation

anonymous enum

Specifies the order of the elements in memory.

Enumerator
ROW_MAJOR 
COL_MAJOR 

Definition at line 27 of file Object.h.

Member Function Documentation

talvos::PtrMatrixLayout::operator bool ( ) const
inline

Convenience overload to check whether the matrix layout has been set.

Definition at line 38 of file Object.h.

Member Data Documentation

enum { ... } talvos::PtrMatrixLayout::Order

Specifies the order of the elements in memory.

uint32_t talvos::PtrMatrixLayout::Stride = 0

The stride in bytes between columns (COL_MAJOR) or rows (ROW_MAJOR).

A value of zero indicates that this matrix layout has not been set.

Definition at line 35 of file Object.h.