Thanks to visit codestin.com
Credit goes to github.com

Skip to content

marcobarb94/DirectComputeLibrary

Repository files navigation

Direct Compute Library

The idea is to develop a CLI library to facilitate the use of Direct Compute on DirectX 11 (in future 12). It's a work in progress and it will be released using MIT license.

Linker Input Dependences

Use them on tester too!

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib dxguid.lib winmm.lib comctl32.lib d3d11.lib D3DCompiler.lib

  • Linker subsystem: Windows

Library Structure

  • Device: define a device to run HLSL code.
    • Shader: functions to compile and run a shader
      • Buffer: defines buffers connected to the Shader - very easy to use! different option since different I/O in CPU and GPU needed!

BUFFERS I/O

I/O CPU/GPU READ READ & WRITE APPEND
READ SB + SRV [t] RWSB + UAV [u] ASB + UAV?
READ & WRITE RWSB + UAV [u] RWSB + UAV [u] None
NONE SB + SRV RWSB + UAV ASB + UAV?

Remember: to bind resources, use:

  • t – for shader resource views (SRV)
  • s – for samplers
  • u – for unordered access views (UAV)
  • b – for constant buffer views (CBV)

About

An easy-to-use library for Direct Compute in DirectX 11

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors