added font rendering

This commit is contained in:
2026-05-25 01:35:19 +03:00
parent a9766d6dd6
commit f127ac3801
27 changed files with 657 additions and 43 deletions

View File

@@ -225,6 +225,13 @@ public:
uint32_t m_nSize;
};
class CVkSampler: public ISampler
{
public:
virtual void SetDebugName( const char *szName ) override;
VkSampler m_sampler;
};
class CVkPipelineLibrary
{
public:
@@ -349,6 +356,7 @@ public:
virtual void SetDebugName( const char *szName ) override;
virtual uint32_t LoadTexture( const char *szPath ) override;
virtual uint32_t GetTextureID( const char *szPath ) override;
virtual IImage *GetTexture( uint32_t uTextureID ) override;
virtual void UnloadTexture( uint32_t uTextureID ) override;
void Frame();
@@ -374,7 +382,10 @@ public:
virtual void PSSetShaderResource( uint32_t uRegister, IRenderingObject *pResource ) override;
virtual void PSSetConstantsBuffer( uint32_t uRegister, IBuffer *pConstants ) override;
virtual void PSSetTextureArray( uint32_t uSet, ITextureArray *pArray ) override;
virtual void PSSetTexture( uint32_t uRegister, IImage *pImage ) override;
virtual void PSSetSampler( uint32_t uRegister, ISampler *pImage ) override;
CVkShader *m_pVkShader;
CUtlVector<VkDescriptorSet> m_hSets;
@@ -402,6 +413,7 @@ struct VulkanMaterialCommandBuffer_t
};
enum EVkFrameObjectType_t
{
FRAME_OBJECT_TYPE_SINGLE,
@@ -438,6 +450,7 @@ public:
virtual void SetRenderTarget( uint32_t uIndex, IImage *pImage ) override;
virtual void SetClearColor( uint32_t uIndex, float r, float g, float b, float a ) override;
virtual void SetLoadStoreModes( uint32_t uIndex, ELoadMode eLoadMode, EStoreMode eStoreMode ) override;
virtual void SetDepthTarget( IImage *pDepth ) override;
virtual void SetClearDepth( float fVal ) override;