Initial refactoring of gpu/.
Runs too fast - now there are ringbuffer wrapping issues.
This commit is contained in:
@@ -19,9 +19,6 @@
|
||||
|
||||
namespace xe {
|
||||
namespace gpu {
|
||||
|
||||
class ShaderCache;
|
||||
|
||||
namespace nop {
|
||||
|
||||
|
||||
@@ -30,27 +27,16 @@ public:
|
||||
NopGraphicsDriver(Memory* memory);
|
||||
virtual ~NopGraphicsDriver();
|
||||
|
||||
virtual void Initialize();
|
||||
ResourceCache* resource_cache() const override { return resource_cache_; }
|
||||
|
||||
virtual void InvalidateState(
|
||||
uint32_t mask);
|
||||
virtual void SetShader(
|
||||
xenos::XE_GPU_SHADER_TYPE type,
|
||||
uint32_t address,
|
||||
uint32_t start,
|
||||
uint32_t length);
|
||||
virtual void DrawIndexBuffer(
|
||||
xenos::XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
bool index_32bit, uint32_t index_count,
|
||||
uint32_t index_base, uint32_t index_size, uint32_t endianness);
|
||||
virtual void DrawIndexAuto(
|
||||
xenos::XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
uint32_t index_count);
|
||||
int Initialize() override;
|
||||
|
||||
virtual int Resolve();
|
||||
int Draw(const DrawCommand& command) override;
|
||||
|
||||
int Resolve() override;
|
||||
|
||||
protected:
|
||||
ShaderCache* shader_cache_;
|
||||
ResourceCache* resource_cache_;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user