mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Fix some warnings
This commit is contained in:
parent
87d8bebd0d
commit
885218ab33
2 changed files with 4 additions and 4 deletions
|
@ -42,7 +42,7 @@ namespace vk
|
||||||
|
|
||||||
queue_submit_t(const queue_submit_t& other)
|
queue_submit_t(const queue_submit_t& other)
|
||||||
{
|
{
|
||||||
std::memcpy(this, &other, sizeof(queue_submit_t));
|
std::memcpy(static_cast<void*>(this), &other, sizeof(queue_submit_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline queue_submit_t& wait_on(VkSemaphore semaphore, VkPipelineStageFlags stage)
|
inline queue_submit_t& wait_on(VkSemaphore semaphore, VkPipelineStageFlags stage)
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace vk
|
||||||
graphics_pipeline_state()
|
graphics_pipeline_state()
|
||||||
{
|
{
|
||||||
// NOTE: Vk** structs have padding bytes
|
// NOTE: Vk** structs have padding bytes
|
||||||
memset(this, 0, sizeof(graphics_pipeline_state));
|
std::memset(static_cast<void*>(this), 0, sizeof(graphics_pipeline_state));
|
||||||
|
|
||||||
ia.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
|
ia.sType = VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
|
||||||
cs.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
|
cs.sType = VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
|
||||||
|
@ -43,7 +43,7 @@ namespace vk
|
||||||
graphics_pipeline_state(const graphics_pipeline_state& other)
|
graphics_pipeline_state(const graphics_pipeline_state& other)
|
||||||
{
|
{
|
||||||
// NOTE: Vk** structs have padding bytes
|
// NOTE: Vk** structs have padding bytes
|
||||||
memcpy(this, &other, sizeof(graphics_pipeline_state));
|
std::memcpy(static_cast<void*>(this), &other, sizeof(graphics_pipeline_state));
|
||||||
|
|
||||||
if (other.cs.pAttachments == other.att_state)
|
if (other.cs.pAttachments == other.att_state)
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,7 @@ namespace vk
|
||||||
if (this != &other)
|
if (this != &other)
|
||||||
{
|
{
|
||||||
// NOTE: Vk** structs have padding bytes
|
// NOTE: Vk** structs have padding bytes
|
||||||
memcpy(this, &other, sizeof(graphics_pipeline_state));
|
std::memcpy(static_cast<void*>(this), &other, sizeof(graphics_pipeline_state));
|
||||||
|
|
||||||
if (other.cs.pAttachments == other.att_state)
|
if (other.cs.pAttachments == other.att_state)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue