The Dirtchamber
A mixed reality testing environment for real-time global illumination algorithms
|
A shader resource wrapper. More...
#include <shader_resource.h>
Public Member Functions | |
virtual void | to_vs (ID3D11DeviceContext *context, UINT slot) |
Upload the shader resource to register slot of a vertex shader. | |
virtual void | to_gs (ID3D11DeviceContext *context, UINT slot) |
Upload the shader resource to register slot of a geometry shader. | |
virtual void | to_ps (ID3D11DeviceContext *context, UINT slot) |
Upload the shader resource to register slot of a pixel shader. | |
virtual void | to_cs (ID3D11DeviceContext *context, UINT slot) |
Upload the shader resource to register slot of a compute shader. | |
virtual void | destroy ()=0 |
Destroy the shader_resource and free all memory. | |
A shader resource wrapper.
This basic interface defines a resource which can be anything that can be uploaded to a GPU. Each shader_resource has an identifying name, a function to destroy it and free all its resources and several functions to upload it to a typed shader into a specified register.