Saga3D API Documentation  1.0-RC4
SShaderBuffer.h
Go to the documentation of this file.
1 #ifndef __SSHADER_BUFFER_H_INCLUDED__
2 #define __SSHADER_BUFFER_H_INCLUDED__
3 
4 #include "SGPUResource.h"
5 #include <memory>
6 
7 namespace saga
8 {
9 namespace video
10 {
11  struct SShaderBuffer : public SGPUResource
12  {
14  std::size_t Size = 0;
16  bool ReadBack = false;
18  bool VertexBufferBind = false;
20  bool IndexBufferBind = false;
21  };
22 
24 
25 } // namespace scene
26 } // namespace saga
27 
28 #endif // __SSHADER_BUFFER_H_INCLUDED__
29 
saga::video::SShaderBuffer::Size
std::size_t Size
Size of this buffer.
Definition: SShaderBuffer.h:14
saga::video::SShaderBuffer::VertexBufferBind
bool VertexBufferBind
Allow binding as vertex buffer.
Definition: SShaderBuffer.h:18
saga::video::SGPUResource
Definition: SGPUResource.h:11
saga::video::SShaderBuffer::ReadBack
bool ReadBack
CPU read from GPU.
Definition: SShaderBuffer.h:16
SGPUResource.h
saga::video::ShaderBufferHandle
SGPUResource::HandleType ShaderBufferHandle
Definition: SShaderBuffer.h:23
saga::video::SGPUResource::HandleType
std::uint32_t HandleType
Definition: SGPUResource.h:13
saga::video::SShaderBuffer::IndexBufferBind
bool IndexBufferBind
Allow binding as index buffer.
Definition: SShaderBuffer.h:20
saga::video::SShaderBuffer
Definition: SShaderBuffer.h:11
saga
Definition: aabbox3d.h:11