mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-01 09:22:40 +00:00
31 lines
818 B
C
31 lines
818 B
C
|
#include "RB_DrawTris.h"
|
||
|
#include "tr_globals.h"
|
||
|
#include "vk_shade_geometry.h"
|
||
|
#include "vk_pipelines.h"
|
||
|
#include "tr_backend.h"
|
||
|
/*
|
||
|
================
|
||
|
Draws triangle outlines for debugging
|
||
|
================
|
||
|
*/
|
||
|
void RB_DrawTris (shaderCommands_t * pInput)
|
||
|
{
|
||
|
if (vk.features.fillModeNonSolid == VK_FALSE) {
|
||
|
static qboolean printed = qfalse;
|
||
|
if (!printed) {
|
||
|
ri.Printf(PRINT_WARNING, "RB_ShowTris: fillModeNonSolid not supported.\n");
|
||
|
printed = qtrue;
|
||
|
}
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
|
||
|
updateCurDescriptor( tr.whiteImage->descriptor_set, 0);
|
||
|
|
||
|
// VULKAN
|
||
|
|
||
|
memset(pInput->svars.colors, 255, pInput->numVertexes * 4 );
|
||
|
VkPipeline pipeline = backEnd.viewParms.isMirror ? g_stdPipelines.tris_mirror_debug_pipeline : g_stdPipelines.tris_debug_pipeline;
|
||
|
vk_shade_geometry(pipeline, VK_FALSE, DEPTH_RANGE_ZERO, VK_TRUE);
|
||
|
}
|