summaryrefslogtreecommitdiff
path: root/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pipeline.cpp')
-rw-r--r--pipeline.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/pipeline.cpp b/pipeline.cpp
index cb052b8..2dc8ce9 100644
--- a/pipeline.cpp
+++ b/pipeline.cpp
@@ -180,6 +180,10 @@ void Pipeline_Builder::blend(
);
}
+void Pipeline_Builder::cull(Cull_Mode mode) {
+ pip->cull_mode = mode;
+}
+
void Pipeline_Builder::blend(
Blend_Mode mode_col,
Blend_Factor src_col,
@@ -265,6 +269,7 @@ Pipeline& Pipeline_Builder::build() {
h(pip->pipeline_hash, pip->blend_dst);
h(pip->pipeline_hash, pip->blend_src_alpha);
h(pip->pipeline_hash, pip->blend_dst_alpha);
+ h(pip->pipeline_hash, pip->cull_mode);
{
int i, e = pip->descriptor_count;
pip->descriptor_resource_hash = fnv1a64(0, 0);