Skip to content

Commit

Permalink
Fix D3D12
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Feb 17, 2025
1 parent 0a98182 commit aa0a00c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,10 @@ static void wait_for_fence(kope_g5_device *device, ID3D12Fence *fence, HANDLE ev
}
}

kope_g5_texture_format kope_d3d12_device_framebuffer_format(kope_g5_device *device) {
return KOPE_G5_TEXTURE_FORMAT_BGRA8_UNORM;
}

static bool check_for_fence(ID3D12Fence *fence, UINT64 completion_value) {
// kinc_log(KINC_LOG_LEVEL_INFO, "Done: %llu Check: %llu", fence->GetCompletedValue(), completion_value);
return fence->GetCompletedValue() >= completion_value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ void kope_d3d12_device_create_sampler(kope_g5_device *device, const kope_g5_samp

kope_g5_texture *kope_d3d12_device_get_framebuffer(kope_g5_device *device);

kope_g5_texture_format kope_d3d12_device_framebuffer_format(kope_g5_device *device);

void kope_d3d12_device_execute_command_list(kope_g5_device *device, kope_g5_command_list *list);

void kope_d3d12_device_wait_until_idle(kope_g5_device *device);
Expand Down

0 comments on commit aa0a00c

Please sign in to comment.