C++ Library Extensions 2022.12.09
To help learn modern C++ programming
tpf_opencl_utils.hpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include <memory.h>
#include <windows.h>
#include <CL\cl.h>
#include <CL\cl_ext.h>
#include <assert.h>
#include <d3d9.h>
Include dependency graph for tpf_opencl_utils.hpp:

Go to the source code of this file.

Macros

#define NOMINMAX
 
#define CL_TARGET_OPENCL_VERSION   220
 

Functions

template<typename = int>
void LogInfo (const char *str,...)
 
template<typename = int>
void LogError (const char *str,...)
 
template<typename = int>
int ReadSourceFromFile (const char *fileName, char **source, size_t *sourceSize)
 

Macro Definition Documentation

◆ CL_TARGET_OPENCL_VERSION

#define CL_TARGET_OPENCL_VERSION   220

Definition at line 31 of file tpf_opencl_utils.hpp.

◆ NOMINMAX

#define NOMINMAX

Definition at line 5 of file tpf_opencl_utils.hpp.

Function Documentation

◆ LogError()

template<typename = int>
void LogError ( const char *  str,
  ... 
)

Definition at line 63 of file tpf_opencl_utils.hpp.

Here is the caller graph for this function:

◆ LogInfo()

template<typename = int>
void LogInfo ( const char *  str,
  ... 
)

Definition at line 49 of file tpf_opencl_utils.hpp.

◆ ReadSourceFromFile()

template<typename = int>
int ReadSourceFromFile ( const char *  fileName,
char **  source,
size_t *  sourceSize 
)

Definition at line 80 of file tpf_opencl_utils.hpp.

Here is the call graph for this function: