Пример #1
0
 internal override void SetTextureResource(PixelShaderStage pixelShader)
 {
     if (textureReady)
     {
         if (Colored)
         {
             pixelShader.SetShaderResource(0, resourceView2);
         }
         else
         {
             pixelShader.SetShaderResource(0, resourceView1);
         }
     }
 }
Пример #2
0
 internal override void SetTextureResource(PixelShaderStage pixelShader)
 {
     if (Active != -1)
     {
         pixelShader.SetShaderResource(0, resourceView[Active]);
     }
 }
Пример #3
0
 internal override void SetTextureResource(PixelShaderStage pixelShader)
 {
     if (textureReady)
     {
         pixelShader.SetShaderResource(0, resourceView);
     }
 }
Пример #4
0
 internal void SetTextureResource(PixelShaderStage pixelShader, string id)
 {
     if (textures.ContainsKey(id))
     {
         if (textures.TryGetValue(id, out Tuple <ShaderResourceView, Texture2D> texture))
         {
             pixelShader.SetShaderResource(0, texture.Item1);
         }
     }
 }