forked from BachiLi/redner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sampler.h
24 lines (21 loc) · 1.09 KB
/
sampler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "buffer.h"
#include "vector.h"
#include "camera.h"
#include "area_light.h"
#include "material.h"
#include "edge.h"
struct Sampler {
virtual ~Sampler() {}
virtual void begin_sample(int sample_id) {};
virtual void next_camera_samples(BufferView<TCameraSample<float>> samples) = 0;
virtual void next_camera_samples(BufferView<TCameraSample<double>> samples) = 0;
virtual void next_light_samples(BufferView<TLightSample<float>> samples) = 0;
virtual void next_light_samples(BufferView<TLightSample<double>> samples) = 0;
virtual void next_bsdf_samples(BufferView<TBSDFSample<float>> samples) = 0;
virtual void next_bsdf_samples(BufferView<TBSDFSample<double>> samples) = 0;
virtual void next_primary_edge_samples(BufferView<TPrimaryEdgeSample<float>> samples) = 0;
virtual void next_primary_edge_samples(BufferView<TPrimaryEdgeSample<double>> samples) = 0;
virtual void next_secondary_edge_samples(BufferView<TSecondaryEdgeSample<float>> samples) = 0;
virtual void next_secondary_edge_samples(BufferView<TSecondaryEdgeSample<double>> samples) = 0;
};