本文整理汇总了C#中BizHawk.Bizware.BizwareGL.PipelineUniform类的典型用法代码示例。如果您正苦于以下问题:C# PipelineUniform类的具体用法?C# PipelineUniform怎么用?C# PipelineUniform使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PipelineUniform类属于BizHawk.Bizware.BizwareGL命名空间,在下文中一共展示了PipelineUniform类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: SetPipelineUniformMatrix
public unsafe void SetPipelineUniformMatrix(PipelineUniform uniform, Matrix4 mat, bool transpose)
{
GL.UniformMatrix4(uniform.Id.ToInt32(), 1, transpose, (float*)&mat);
}
开发者ID:ddugovic,项目名称:RASuite,代码行数:4,代码来源:IGL_TK.cs
示例2: SetPipelineUniform
public void SetPipelineUniform(PipelineUniform uniform, float value)
{
if (uniform.Owner == null) return; //uniform was optimized out
GL.Uniform1((int)uniform.Sole.Opaque, value);
}
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:5,代码来源:IGL_TK.cs
示例3: SetPipelineUniform
public void SetPipelineUniform(PipelineUniform uniform, float value)
{
}
开发者ID:raiscan,项目名称:BizHawk,代码行数:3,代码来源:IGL_GdiPlus.cs
示例4: SetPipelineUniformMatrix
public unsafe void SetPipelineUniformMatrix(PipelineUniform uniform, ref Matrix4 mat, bool transpose)
{
}
开发者ID:raiscan,项目名称:BizHawk,代码行数:3,代码来源:IGL_GdiPlus.cs
示例5: SetPipelineUniform
public unsafe void SetPipelineUniform(PipelineUniform uniform, Vector4[] values)
{
if (uniform.Owner == null) return; //uniform was optimized out
var v = new global::SlimDX.Vector4[values.Length];
for (int i = 0; i < values.Length; i++)
v[i] = values[i].ToSlimDXVector4();
foreach (var ui in uniform.UniformInfos)
{
var uw = ui.Opaque as UniformWrapper;
uw.CT.SetValue(dev, uw.EffectHandle, v);
}
}
开发者ID:SaxxonPike,项目名称:BizHawk,代码行数:12,代码来源:IGL_SlimDX9.cs
示例6: SetPipelineUniformSampler
public void SetPipelineUniformSampler(PipelineUniform uniform, IntPtr texHandle)
{
//set the sampler index into the uniform first
//now bind the texture
if(sActiveTexture != uniform.SamplerIndex)
{
sActiveTexture = uniform.SamplerIndex;
var selectedUnit = (TextureUnit)((int)TextureUnit.Texture0 + uniform.SamplerIndex);
GL.ActiveTexture(selectedUnit);
}
GL.BindTexture(TextureTarget.Texture2D, texHandle.ToInt32());
}
开发者ID:ddugovic,项目名称:RASuite,代码行数:12,代码来源:IGL_TK.cs
示例7: SetPipelineUniformMatrix
public unsafe void SetPipelineUniformMatrix(PipelineUniform uniform, ref Matrix4 mat, bool transpose)
{
if (uniform.Owner == null) return; //uniform was optimized out
foreach (var ui in uniform.UniformInfos)
{
var uw = ui.Opaque as UniformWrapper;
uw.CT.SetValue(dev, uw.EffectHandle, mat.ToSlimDXMatrix(!transpose));
}
}
开发者ID:SaxxonPike,项目名称:BizHawk,代码行数:10,代码来源:IGL_SlimDX9.cs
示例8: SetPipelineUniform
public void SetPipelineUniform(PipelineUniform uniform, float value)
{
GL.Uniform1(uniform.Id.ToInt32(), value);
}
开发者ID:ddugovic,项目名称:RASuite,代码行数:4,代码来源:IGL_TK.cs
示例9: SetPipelineUniformSampler
public void SetPipelineUniformSampler(PipelineUniform uniform, Texture2d tex)
{
}
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:4,代码来源:IGL_GdiPlus.cs
示例10: SetPipelineUniformSampler
public void SetPipelineUniformSampler(PipelineUniform uniform, Texture2d tex)
{
int n = ((int)uniform.Sole.Opaque)>>24;
//set the sampler index into the uniform first
if (sActiveTexture != n)
{
sActiveTexture = n;
var selectedUnit = (TextureUnit)((int)TextureUnit.Texture0 + n);
GL.ActiveTexture(selectedUnit);
}
//now bind the texture
GL.BindTexture(TextureTarget.Texture2D, (int)tex.Opaque);
}
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:15,代码来源:IGL_TK.cs
示例11: SetPipelineUniformMatrix
public unsafe void SetPipelineUniformMatrix(PipelineUniform uniform, Matrix4 mat, bool transpose)
{
//GL.UniformMatrix4((int)uniform.Opaque, 1, transpose, (float*)&mat);
GL.Uniform4((int)uniform.Sole.Opaque + 0, 1, (float*)&mat.Row0);
GL.Uniform4((int)uniform.Sole.Opaque + 1, 1, (float*)&mat.Row1);
GL.Uniform4((int)uniform.Sole.Opaque + 2, 1, (float*)&mat.Row2);
GL.Uniform4((int)uniform.Sole.Opaque + 3, 1, (float*)&mat.Row3);
}
开发者ID:CadeLaRen,项目名称:BizHawk,代码行数:8,代码来源:IGL_TK.cs
示例12: SetPipelineUniformSampler
public void SetPipelineUniformSampler(PipelineUniform uniform, Texture2d tex)
{
if (uniform.Owner == null) return; //uniform was optimized out
var tw = tex.Opaque as TextureWrapper;
foreach (var ui in uniform.UniformInfos)
{
var uw = ui.Opaque as UniformWrapper;
dev.SetTexture(uw.SamplerIndex, tw.Texture);
dev.SetSamplerState(uw.SamplerIndex, SamplerState.AddressU, tw.WrapClamp);
dev.SetSamplerState(uw.SamplerIndex, SamplerState.AddressV, tw.WrapClamp);
dev.SetSamplerState(uw.SamplerIndex, SamplerState.MinFilter, tw.MinFilter);
dev.SetSamplerState(uw.SamplerIndex, SamplerState.MagFilter, tw.MagFilter);
}
}
开发者ID:SaxxonPike,项目名称:BizHawk,代码行数:16,代码来源:IGL_SlimDX9.cs
示例13: SetPipelineUniformSampler
public void SetPipelineUniformSampler(PipelineUniform uniform, IntPtr texHandle)
{
}
开发者ID:raiscan,项目名称:BizHawk,代码行数:3,代码来源:IGL_GdiPlus.cs
注:本文中的BizHawk.Bizware.BizwareGL.PipelineUniform类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论