Merge branch 'master' of https://github.com/dpjudas/VkDoom into gzd-master-experimental
This commit is contained in:
commit
129d0eaafb
2 changed files with 8 additions and 0 deletions
|
|
@ -21,3 +21,6 @@ const int texture17 = 16;
|
|||
const int texture18 = 17;
|
||||
const int texture19 = 18;
|
||||
const int texture20 = 19;
|
||||
|
||||
/* For user shaders so they can check if the engine uses bindless textures */
|
||||
#define USES_BINDLESS
|
||||
|
|
|
|||
|
|
@ -31,6 +31,11 @@ vec4 texture(int index, vec2 p)
|
|||
return texture(textures[uTextureIndex + index], p);
|
||||
}
|
||||
|
||||
vec4 texture(int index, vec2 p, float bias)
|
||||
{
|
||||
return texture(textures[uTextureIndex + index], p, bias);
|
||||
}
|
||||
|
||||
ivec2 textureSize(int index, int lod)
|
||||
{
|
||||
return textureSize(textures[uTextureIndex + index], lod);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue