mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-18 21:13:02 +01:00
Add textureSize() overloads for BgfxI/USampler2D (#2471)
This commit is contained in:
committed by
GitHub
parent
69fb21f50e
commit
83039433ee
@@ -301,6 +301,20 @@ vec2 bgfxTextureSize(BgfxSampler2D _sampler, int _lod)
|
||||
return result;
|
||||
}
|
||||
|
||||
vec2 bgfxTextureSize(BgfxISampler2D _sampler, int _lod)
|
||||
{
|
||||
vec2 result;
|
||||
_sampler.m_texture.GetDimensions(result.x, result.y);
|
||||
return result;
|
||||
}
|
||||
|
||||
vec2 bgfxTextureSize(BgfxUSampler2D _sampler, int _lod)
|
||||
{
|
||||
vec2 result;
|
||||
_sampler.m_texture.GetDimensions(result.x, result.y);
|
||||
return result;
|
||||
}
|
||||
|
||||
vec4 bgfxTextureGather(BgfxSampler2D _sampler, vec2 _coord)
|
||||
{
|
||||
return _sampler.m_texture.GatherRed(_sampler.m_sampler, _coord );
|
||||
|
||||
Reference in New Issue
Block a user