2024-05-20 09:09:08 -03:00
|
|
|
#ifndef XNA_GRAPHICS_BUFFER_HPP
|
|
|
|
#define XNA_GRAPHICS_BUFFER_HPP
|
|
|
|
|
|
|
|
#include "../default.hpp"
|
|
|
|
#include "gresource.hpp"
|
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
class ConstantBuffer : public GraphicsResource {
|
|
|
|
public:
|
|
|
|
ConstantBuffer();
|
|
|
|
ConstantBuffer(sptr<GraphicsDevice> const&);
|
|
|
|
~ConstantBuffer();
|
|
|
|
bool Initialize(xna_error_nullarg);
|
|
|
|
|
|
|
|
public:
|
|
|
|
struct PlatformImplementation;
|
|
|
|
uptr<PlatformImplementation> impl = nullptr;
|
|
|
|
};
|
2024-05-20 09:32:34 -03:00
|
|
|
|
|
|
|
class DataBuffer : public GraphicsResource {
|
|
|
|
public:
|
|
|
|
DataBuffer();
|
|
|
|
DataBuffer(sptr<GraphicsDevice> const&);
|
|
|
|
~DataBuffer();
|
|
|
|
bool Initialize(xna_error_nullarg);
|
|
|
|
|
|
|
|
public:
|
|
|
|
struct PlatformImplementation;
|
|
|
|
uptr<PlatformImplementation> impl = nullptr;
|
|
|
|
};
|
2024-05-20 09:09:08 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|