summaryrefslogtreecommitdiff
path: root/Runtime/GfxDevice/opengles30/CombinerGLES30.cpp
blob: 51f64c4a2887cc2f228d7ed472d59fccb85073fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "UnityPrefix.h"
#include "CombinerGLES30.h"
#include "Runtime/Shaders/GraphicsCaps.h"
#include "VBOGLES30.h"

#if GFX_SUPPORTS_OPENGLES30

TextureCombinersGLES3* TextureCombinersGLES3::Create (int count, const ShaderLab::TextureBinding* texEnvs)
{
	// check if we have enough vertex attributes to emulate this combiner
	if (count + kGLES3AttribLocationTexCoord0 >= gGraphicsCaps.gles30.maxAttributes)
		return NULL;
	
	// create struct that holds texture combiner info object
	TextureCombinersGLES3* combiners = new TextureCombinersGLES3();
	combiners->count = count;
	combiners->texEnvs = texEnvs;
	return combiners;
}

#endif // GFX_SUPPORTS_OPENGLES30