Starting to drive command buffer actions down to a graphics driver.
This commit is contained in:
51
src/xenia/gpu/nop/nop_graphics_driver.h
Normal file
51
src/xenia/gpu/nop/nop_graphics_driver.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* Xenia : Xbox 360 Emulator Research Project *
|
||||
******************************************************************************
|
||||
* Copyright 2013 Ben Vanik. All rights reserved. *
|
||||
* Released under the BSD license - see LICENSE in the root for more details. *
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
#ifndef XENIA_GPU_NOP_NOP_GRAPHICS_DRIVER_H_
|
||||
#define XENIA_GPU_NOP_NOP_GRAPHICS_DRIVER_H_
|
||||
|
||||
#include <xenia/core.h>
|
||||
|
||||
#include <xenia/gpu/graphics_driver.h>
|
||||
#include <xenia/gpu/nop/nop-private.h>
|
||||
|
||||
|
||||
namespace xe {
|
||||
namespace gpu {
|
||||
namespace nop {
|
||||
|
||||
|
||||
class NopGraphicsDriver : public GraphicsDriver {
|
||||
public:
|
||||
NopGraphicsDriver(xe_memory_ref memory);
|
||||
virtual ~NopGraphicsDriver();
|
||||
|
||||
virtual void Initialize();
|
||||
|
||||
virtual void InvalidateState(
|
||||
uint32_t mask);
|
||||
virtual void SetShader(
|
||||
XE_GPU_SHADER_TYPE type,
|
||||
uint32_t address,
|
||||
uint32_t start,
|
||||
uint32_t size_dwords);
|
||||
virtual void DrawIndexed(
|
||||
XE_GPU_PRIMITIVE_TYPE prim_type,
|
||||
uint32_t index_count);
|
||||
|
||||
protected:
|
||||
};
|
||||
|
||||
|
||||
} // namespace nop
|
||||
} // namespace gpu
|
||||
} // namespace xe
|
||||
|
||||
|
||||
#endif // XENIA_GPU_NOP_NOP_GRAPHICS_DRIVER_H_
|
||||
Reference in New Issue
Block a user