-
Notifications
You must be signed in to change notification settings - Fork 13
CAD DTM Rendering #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
CAD DTM Rendering #186
Conversation
…Examples-and-Tests into dtm
}; | ||
|
||
// Set 0 - Scene Data and Globals, buffer bindings don't change the buffers only get updated | ||
[[vk::binding(0, 0)]] ConstantBuffer<Globals> globals : register(b0); | ||
[[vk::binding(1, 0)]] StructuredBuffer<DrawObject> drawObjects : register(t0); | ||
[[vk::binding(2, 0)]] StructuredBuffer<MainObject> mainObjects : register(t1); | ||
[[vk::binding(3, 0)]] StructuredBuffer<LineStyle> lineStyles : register(t2); | ||
[[vk::binding(4, 0)]] StructuredBuffer<DTMSettings> dtmSettingsBuff : register(t3); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small rename, just dtmSettings
…Examples-and-Tests into dtm
// TODO: functions outside of the "dtm" namespace need to be moved to another file | ||
|
||
// for usage in upper_bound function | ||
struct StyleAccessor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move these to line_style.hlsl, and include it here
these aren't related to dtms
return dot(vec, vec); | ||
} | ||
|
||
// TODO: Later move these functions and structs to dtmSettings.hlsl and a namespace like dtmSettings::height_shading or dtmSettings::contours, etc.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
…or view-only GPU mode in n4ce)
CAD DTM Rendering Example
Devsh-Graphics-Programming/Nabla#858