private void SetTexture(string boolName, string texName, Dx11.ShaderResourceView data) { if (data == null) { SetBoolean(boolName, false); } else { SetBoolean(boolName, true); SetTexture(texName, data); } }
public void SetTexture(string matName, Dx11.ShaderResourceView tex) { textures.Add(tex); texIndex.Add(matName, textures.Count - 1); }
private void SetTexture(string name, Dx11.ShaderResourceView texture) { effect.GetVariableByName(name + "Texture").AsResource().SetResource(texture); }