summaryrefslogtreecommitdiffstats
path: root/Scripts/cpp_transcribe.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-06-28 21:24:56 -0700
committeryum <yum.food.vr@gmail.com>2023-06-28 21:24:56 -0700
commitbdaeb1911297d7901a12e3ac51b38c3463789279 (patch)
treeb6151c80100db635ca0c4479d8b1afde838b579e /Scripts/cpp_transcribe.py
parentff7eb3c212195af71cd0ce4a3cd0c9a081d6ebda (diff)
Add profanity filter
Add toggle to UI to enable a profanity filter. It replaces vowels in bad words with asterisks. Bugfix: filters now apply to OBS
Diffstat (limited to 'Scripts/cpp_transcribe.py')
0 files changed, 0 insertions, 0 deletions
#include "debug-command-queue.h" #include "debug-texture.h" #include "debug-helper-functions.h" namespace gfx { using namespace Slang; namespace debug { const ISwapchain::Desc& DebugSwapchain::getDesc() { SLANG_GFX_API_FUNC; desc = baseObject->getDesc(); desc.queue = queue.Ptr(); return desc; } Result DebugSwapchain::getImage(GfxIndex index, ITextureResource** outResource) { SLANG_GFX_API_FUNC; maybeRebuildImageList(); if (index > (GfxCount)m_images.getCount()) { GFX_DIAGNOSE_ERROR_FORMAT( "`index`(%d) must not exceed total number of images (%d) in the swapchain.", index, (uint32_t)m_images.getCount()); } returnComPtr(outResource, m_images[index]); return SLANG_OK; } Result DebugSwapchain::present() { SLANG_GFX_API_FUNC; return baseObject->present(); } int DebugSwapchain::acquireNextImage() { SLANG_GFX_API_FUNC; return baseObject->acquireNextImage(); } Result DebugSwapchain::resize(GfxCount width, GfxCount height) { SLANG_GFX_API_FUNC; for (auto& image : m_images) { if (image->debugGetReferenceCount() != 1) { // Only warn here because tools like NSight might keep // an additional reference to swapchain images. GFX_DIAGNOSE_WARNING("all swapchain images must be released before calling resize()."); break; } } m_images.clearAndDeallocate(); return baseObject->resize(width, height); } bool DebugSwapchain::isOccluded() { SLANG_GFX_API_FUNC; return baseObject->isOccluded(); } Result DebugSwapchain::setFullScreenMode(bool mode) { SLANG_GFX_API_FUNC; return baseObject->setFullScreenMode(mode); }