issues
search
maxtla
/
DX12_Testbench_Implementation
0
stars
0
forks
source link
List of Requirements - Frogge
#4
Open
Froggzoria
opened
5 years ago
Froggzoria
commented
5 years ago
General
Sort the window creation
Make sure new pushes work before you continue with other tasks
Comment out everything but the part you're working on currently. To make sure that it works separately first.
Take inspiration from the existing solution. Don't reinvent the wheel..
Renderer
makeRenderer(DX12)
initialize(int Width, int Height)
setWinTitle(string name)
setClearColor(r, g, b, a)
getShaderPath() - relative path
getShaderExtension() - .hlsl
makeMaterial(string name)
makeRenderState() - for render states
makeTexture2D()
makeSampler2D()
makeVertexBuffer(size_t size, VertexBuffer usage)
makeMesh()
makeTechnique(material, renderState)
clearBuffer(int flag)
submit(mesh)
frame()
present()
shutdown()
Material
setShader(string filename, shader type)
addDefine(string defineText, shader type) - into a map
compileMaterial(string error)
addConstantBuffer(string name, int location)
updateConstantBuffer(void* data, size_t size, int location)
Texture2D
loadFromFile(string filename)
ConstantBuffer
setData(void* data, size_t size, material, int location)
Shaders
Create .hlsl shaders
General
Renderer
Material
Texture2D
ConstantBuffer
Shaders