Switch shader runners to use texture-provided device
このコミットが含まれているのは:
1 親
c5a31efd00
コミット
b734baa34b
2ファイル変更
+8
-5
検索条件に一致するファイルはありません
@@ -61,11 +61,11 @@ public sealed class ShaderRunner<T> : IShaderRunner
|
||||
{
|
||||
if (this.shaderFactory is Func<TimeSpan, T> shaderFactory)
|
||||
{
|
||||
GraphicsDevice.Default.ForEach(texture, this.shaderFactory(time));
|
||||
texture.GraphicsDevice.ForEach(texture, this.shaderFactory(time));
|
||||
}
|
||||
else
|
||||
{
|
||||
GraphicsDevice.Default.ForEach(texture, this.statefulShaderFactory!(time, parameter));
|
||||
texture.GraphicsDevice.ForEach(texture, this.statefulShaderFactory!(time, parameter));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする