Public Member Functions

sp::video::Direct3D11ConstantBuffer Class Reference

#include <spDirect3D11ConstantBuffer.hpp>

Inheritance diagram for sp::video::Direct3D11ConstantBuffer:
sp::video::ConstantBuffer

List of all members.

Public Member Functions

 Direct3D11ConstantBuffer (Direct3D11ShaderClass *Owner, const D3D11_SHADER_BUFFER_DESC &ShaderBufferDesc, u32 Index)
 ~Direct3D11ConstantBuffer ()
bool updateBuffer (const void *Buffer, u32 Size=0)
bool valid () const
 Returns true if this is a valid and successful created constant buffer.

Constructor & Destructor Documentation

sp::video::Direct3D11ConstantBuffer::Direct3D11ConstantBuffer ( Direct3D11ShaderClass Owner,
const D3D11_SHADER_BUFFER_DESC &  ShaderBufferDesc,
u32  Index 
)
sp::video::Direct3D11ConstantBuffer::~Direct3D11ConstantBuffer (  ) 

Member Function Documentation

bool sp::video::Direct3D11ConstantBuffer::updateBuffer ( const void *  Buffer,
u32  Size = 0 
) [virtual]

Updates the constant buffer by uploading the data to the shader.

Parameters:
[in] Buffer Constant pointer to the buffer data.
[in] Size Specifies the buffer size (in bytes). If zero the engine determines the size automatically. By default zero.
Returns:
True if the buffer could be updated successful. Otherwise false is returned and an error or warning message will be printed.

Reimplemented from sp::video::ConstantBuffer.

bool sp::video::Direct3D11ConstantBuffer::valid (  )  const [virtual]

Returns true if this is a valid and successful created constant buffer.

Reimplemented from sp::video::ConstantBuffer.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines