DX12: r_showimages.
This commit is contained in:
parent
a72f05e91e
commit
e918bf846b
|
|
@ -978,8 +978,9 @@ void RB_ShowImages( void ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// VULKAN
|
// VULKAN
|
||||||
void RB_ShowVkImages() {
|
// DX12
|
||||||
if (!vk.active) {
|
void RB_Show_Vk_Dx_Images() {
|
||||||
|
if (!vk.active && !dx.active) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -988,8 +989,14 @@ void RB_ShowVkImages() {
|
||||||
}
|
}
|
||||||
|
|
||||||
float black[4] = {0, 0, 0, 1};
|
float black[4] = {0, 0, 0, 1};
|
||||||
|
|
||||||
|
if (vk.active)
|
||||||
vk_clear_attachments(false, true, black);
|
vk_clear_attachments(false, true, black);
|
||||||
|
|
||||||
|
if (dx.active)
|
||||||
|
dx_clear_attachments(false, true, black);
|
||||||
|
|
||||||
|
|
||||||
for (int i = 0 ; i < tr.numImages ; i++) {
|
for (int i = 0 ; i < tr.numImages ; i++) {
|
||||||
auto image = tr.images[i];
|
auto image = tr.images[i];
|
||||||
|
|
||||||
|
|
@ -1038,9 +1045,15 @@ void RB_ShowVkImages() {
|
||||||
tess.svars.texcoords[0][3][0] = 0;
|
tess.svars.texcoords[0][3][0] = 0;
|
||||||
tess.svars.texcoords[0][3][1] = 1;
|
tess.svars.texcoords[0][3][1] = 1;
|
||||||
|
|
||||||
|
if (vk.active) {
|
||||||
vk_bind_geometry();
|
vk_bind_geometry();
|
||||||
vk_shade_geometry(vk.images_debug_pipeline, false, Vk_Depth_Range::normal);
|
vk_shade_geometry(vk.images_debug_pipeline, false, Vk_Depth_Range::normal);
|
||||||
}
|
}
|
||||||
|
if (dx.active) {
|
||||||
|
dx_bind_geometry();
|
||||||
|
dx_shade_geometry(dx.images_debug_pipeline_state, false, Vk_Depth_Range::normal, true, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
tess.numIndexes = 0;
|
tess.numIndexes = 0;
|
||||||
tess.numVertexes = 0;
|
tess.numVertexes = 0;
|
||||||
}
|
}
|
||||||
|
|
@ -1063,7 +1076,7 @@ const void *RB_SwapBuffers( const void *data ) {
|
||||||
// texture swapping test
|
// texture swapping test
|
||||||
if ( r_showImages->integer ) {
|
if ( r_showImages->integer ) {
|
||||||
RB_ShowImages();
|
RB_ShowImages();
|
||||||
RB_ShowVkImages();
|
RB_Show_Vk_Dx_Images();
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd = (const swapBuffersCommand_t *)data;
|
cmd = (const swapBuffersCommand_t *)data;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user