mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
nv2a/vk: Add pvideo support
This commit is contained in:
committed by
mborgerson
parent
f26b8c32d6
commit
d054b366f8
+326
-137
File diff suppressed because it is too large
Load Diff
@@ -229,6 +229,32 @@ typedef struct QueryReport {
|
||||
unsigned int query_count;
|
||||
} QueryReport;
|
||||
|
||||
typedef struct PvideoState {
|
||||
bool enabled;
|
||||
hwaddr base;
|
||||
hwaddr limit;
|
||||
hwaddr offset;
|
||||
|
||||
int pitch;
|
||||
int format;
|
||||
|
||||
int in_width;
|
||||
int in_height;
|
||||
int out_width;
|
||||
int out_height;
|
||||
|
||||
int in_s;
|
||||
int in_t;
|
||||
int out_x;
|
||||
int out_y;
|
||||
|
||||
float scale_x;
|
||||
float scale_y;
|
||||
|
||||
bool color_key_enabled;
|
||||
uint32_t color_key;
|
||||
} PvideoState;
|
||||
|
||||
typedef struct PGRAPHVkDisplayState {
|
||||
ShaderModuleInfo *display_frag;
|
||||
|
||||
@@ -247,6 +273,15 @@ typedef struct PGRAPHVkDisplayState {
|
||||
VkDeviceMemory memory;
|
||||
VkSampler sampler;
|
||||
|
||||
struct {
|
||||
PvideoState state;
|
||||
int width, height;
|
||||
VkImage image;
|
||||
VkImageView image_view;
|
||||
VmaAllocation allocation;
|
||||
VkSampler sampler;
|
||||
} pvideo;
|
||||
|
||||
int width, height;
|
||||
int draw_time;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user