Remove GraphicsDevice.Default property and APIs
このコミットが含まれているのは:
1 親
ea0f792ae6
コミット
4e5acba69c
19ファイル変更
+67
-115
検索条件に一致するファイルはありません
@@ -5,10 +5,10 @@ using ComputeSharp;
|
||||
float[] array = Enumerable.Range(1, 100).Select(static i => (float)i).ToArray();
|
||||
|
||||
// Create the graphics buffer
|
||||
using ReadWriteBuffer<float> gpuBuffer = GraphicsDevice.Default.AllocateReadWriteBuffer(array);
|
||||
using ReadWriteBuffer<float> gpuBuffer = GraphicsDevice.GetDefault().AllocateReadWriteBuffer(array);
|
||||
|
||||
// Run the shader
|
||||
using (var context = GraphicsDevice.Default.CreateComputeContext())
|
||||
using (var context = GraphicsDevice.GetDefault().CreateComputeContext())
|
||||
{
|
||||
context.Log("Dispatching shader");
|
||||
context.BeginEvent("Dispatching event");
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする