#include <stdio.h>
#include "Wrapper.h"
#include "SceneLights.h"
#include "Material.h"
#include "CameraCuda.h"
#include <vector_types.h>
#include <cuda_runtime_api.h>
Defines | |
#define | GRID |
#define | KDTREE |
#define | BVHTREE |
Functions | |
void | cudaRenderGrid (unsigned int width, unsigned int height, float3 &minimum, float3 &maximum, float cellSize, uint3 &dim, cudaArray *cudaGrid, uint4 *triangles, cudaArray *vertices, cudaArray *normals, CameraCuda &camera, unsigned lightCount, Light *lightsIn, Material *materials, unsigned int *buffer, unsigned int *copy, RenderMode mode) |
void | cudaRenderGridTexture (unsigned int width, unsigned int height, float3 &minimum, float3 &maximum, float cellSize, uint3 &dim, cudaArray *cudaGrid, uint4 *triangles, cudaArray *vertices, cudaArray *normals, CameraCuda &camera, unsigned lightsCountIn, Light *lightsIn, Material *materials, unsigned int pbo, RenderMode mode) |
void | cudaRenderKd (unsigned int width, unsigned int height, float3 &minimum, float3 &maximum, cudaArray *cudaTree, uint4 *triangles, cudaArray *vertices, cudaArray *normals, CameraCuda &camera, unsigned lightsCountIn, Light *lightsIn, Material *materials, unsigned int *buffer, unsigned int *copy, RenderMode mode) |
void | cudaRenderKdTexture (unsigned int width, unsigned int height, float3 &minimum, float3 &maximum, cudaArray *cudaTree, uint4 *triangles, cudaArray *vertices, cudaArray *normals, CameraCuda &camera, unsigned lightsCountIn, Light *lightsIn, Material *materials, unsigned int pbo, RenderMode mode) |
void | cudaRenderBvh (unsigned int width, unsigned int height, unsigned *cells, uint4 *triangles, cudaArray *vertices, cudaArray *normals, CameraCuda &camera, unsigned lightsCountIn, Light *lightsIn, Material *materials, unsigned int *buffer, unsigned int *copy, RenderMode mode) |
void | cudaRenderBvhTexture (unsigned int width, unsigned int height, unsigned *cells, uint4 *triangles, cudaArray *vertices, cudaArray *normals, CameraCuda &camera, unsigned lightsCountIn, Light *lightsIn, Material *materials, unsigned int pbo, RenderMode mode) |
#define BVHTREE |
#define GRID |
#define KDTREE |
void cudaRenderBvh | ( | unsigned int | width, | |
unsigned int | height, | |||
unsigned * | cells, | |||
uint4 * | triangles, | |||
cudaArray * | vertices, | |||
cudaArray * | normals, | |||
CameraCuda & | camera, | |||
unsigned | lightsCountIn, | |||
Light * | lightsIn, | |||
Material * | materials, | |||
unsigned int * | buffer, | |||
unsigned int * | copy, | |||
RenderMode | mode | |||
) |
void cudaRenderBvhTexture | ( | unsigned int | width, | |
unsigned int | height, | |||
unsigned * | cells, | |||
uint4 * | triangles, | |||
cudaArray * | vertices, | |||
cudaArray * | normals, | |||
CameraCuda & | camera, | |||
unsigned | lightsCountIn, | |||
Light * | lightsIn, | |||
Material * | materials, | |||
unsigned int | pbo, | |||
RenderMode | mode | |||
) |
void cudaRenderGrid | ( | unsigned int | width, | |
unsigned int | height, | |||
float3 & | minimum, | |||
float3 & | maximum, | |||
float | cellSize, | |||
uint3 & | dim, | |||
cudaArray * | cudaGrid, | |||
uint4 * | triangles, | |||
cudaArray * | vertices, | |||
cudaArray * | normals, | |||
CameraCuda & | camera, | |||
unsigned | lightCount, | |||
Light * | lightsIn, | |||
Material * | materials, | |||
unsigned int * | buffer, | |||
unsigned int * | copy, | |||
RenderMode | mode | |||
) |
void cudaRenderGridTexture | ( | unsigned int | width, | |
unsigned int | height, | |||
float3 & | minimum, | |||
float3 & | maximum, | |||
float | cellSize, | |||
uint3 & | dim, | |||
cudaArray * | cudaGrid, | |||
uint4 * | triangles, | |||
cudaArray * | vertices, | |||
cudaArray * | normals, | |||
CameraCuda & | camera, | |||
unsigned | lightsCountIn, | |||
Light * | lightsIn, | |||
Material * | materials, | |||
unsigned int | pbo, | |||
RenderMode | mode | |||
) |
void cudaRenderKd | ( | unsigned int | width, | |
unsigned int | height, | |||
float3 & | minimum, | |||
float3 & | maximum, | |||
cudaArray * | cudaTree, | |||
uint4 * | triangles, | |||
cudaArray * | vertices, | |||
cudaArray * | normals, | |||
CameraCuda & | camera, | |||
unsigned | lightsCountIn, | |||
Light * | lightsIn, | |||
Material * | materials, | |||
unsigned int * | buffer, | |||
unsigned int * | copy, | |||
RenderMode | mode | |||
) |
void cudaRenderKdTexture | ( | unsigned int | width, | |
unsigned int | height, | |||
float3 & | minimum, | |||
float3 & | maximum, | |||
cudaArray * | cudaTree, | |||
uint4 * | triangles, | |||
cudaArray * | vertices, | |||
cudaArray * | normals, | |||
CameraCuda & | camera, | |||
unsigned | lightsCountIn, | |||
Light * | lightsIn, | |||
Material * | materials, | |||
unsigned int | pbo, | |||
RenderMode | mode | |||
) |