summaryrefslogtreecommitdiff
path: root/examples/shader-toy/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shader-toy/main.cpp')
-rw-r--r--examples/shader-toy/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/shader-toy/main.cpp b/examples/shader-toy/main.cpp
index d94d629ba..c41bd71ca 100644
--- a/examples/shader-toy/main.cpp
+++ b/examples/shader-toy/main.cpp
@@ -290,10 +290,10 @@ Result initialize()
if(!inputLayout) return SLANG_FAIL;
IBufferResource::Desc vertexBufferDesc;
- vertexBufferDesc.init(FullScreenTriangle::kVertexCount * sizeof(FullScreenTriangle::Vertex));
- vertexBufferDesc.setDefaults(IResource::Usage::VertexBuffer);
+ vertexBufferDesc.type = IResource::Type::Buffer;
+ vertexBufferDesc.sizeInBytes = FullScreenTriangle::kVertexCount * sizeof(FullScreenTriangle::Vertex);
+ vertexBufferDesc.defaultState = ResourceState::VertexBuffer;
gVertexBuffer = gDevice->createBufferResource(
- IResource::Usage::VertexBuffer,
vertexBufferDesc,
&FullScreenTriangle::kVertices[0]);
if(!gVertexBuffer) return SLANG_FAIL;