Main Page
Namespaces
Classes
Files
File List
File Members
include
Graphics
GteIndirectArgumentsBuffer.h
Go to the documentation of this file.
1
// David Eberly, Geometric Tools, Redmond WA 98052
2
// Copyright (c) 1998-2017
3
// Distributed under the Boost Software License, Version 1.0.
4
// http://www.boost.org/LICENSE_1_0.txt
5
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
6
// File Version: 3.0.0 (2016/06/19)
7
8
#pragma once
9
10
#include <
Graphics/GteBuffer.h
>
11
12
namespace
gte
13
{
14
15
class
GTE_IMPEXP
IndirectArgumentsBuffer
:
public
Buffer
16
{
17
public
:
18
// Construction. Each element is a 4-byte value. For storing a
19
// single set of input parameters to a draw call, the layout of
20
// the buffer should be as shown next. The parameters are in the
21
// order expected by the Draw* call without the 'Indirect' suffix.
22
//
23
// DrawInstancedIndirect:
24
// UINT VertexCountPerInstance;
25
// UINT InstanceCount;
26
// UINT StartVertexLocation;
27
// UINT StartInstanceLocation;
28
//
29
// DrawIndexedInstancedIndirect:
30
// UINT IndexCountPerInstance;
31
// UINT InstanceCount;
32
// UINT StartIndexLocation;
33
// INT BaseVertexLocation;
34
// UINT StartInstanceLocation;
35
//
36
// DispatchIndirect:
37
// UINT ThreadsGroupCountX;
38
// UINT ThreadsGroupCountY;
39
// UINT ThreadsGroupCountZ;
40
41
IndirectArgumentsBuffer
(
unsigned
int
numElements,
42
bool
createStorage =
true
);
43
};
44
45
}
GteBuffer.h
gte::IndirectArgumentsBuffer
Definition:
GteIndirectArgumentsBuffer.h:15
gte
Definition:
GLX/GteWICFileIO.h:16
gte::Buffer
Definition:
GteBuffer.h:16
GTE_IMPEXP
#define GTE_IMPEXP
Definition:
GTEngineDEF.h:63
geometric_tools_engine
Author(s): Yijiang Huang
autogenerated on Thu Jul 18 2019 04:00:00