This repository has been archived on 2022-05-21. You can view files and clone it, but cannot push or open issues or pull requests.
LEFTONE/core/loshader/pixsort.h
falsycat 80b3b82332 [RELEASE] u22-v04
This version is submitted for U22 final presentation. (squashed 158 commits)
2021-02-07 00:00:00 +00:00

36 lines
750 B
C

#pragma once
#include "util/gleasy/framebuffer.h"
#include "util/gleasy/program.h"
#include "./single.h"
#include "./uniblock.h"
typedef struct {
loshader_single_drawer_t super;
const gleasy_framebuffer_t* fb;
/* public mutable params */
float intensity;
} loshader_pixsort_drawer_t;
void
loshader_pixsort_drawer_initialize(
loshader_pixsort_drawer_t* drawer,
const loshader_uniblock_t* uniblock,
const gleasy_framebuffer_t* fb
);
#define loshader_pixsort_drawer_deinitialize(drawer) \
loshader_single_drawer_deinitialize(&(drawer)->super)
void
loshader_pixsort_drawer_draw(
const loshader_pixsort_drawer_t* drawer
);
bool
loshader_pixsort_drawer_is_skippable(
const loshader_pixsort_drawer_t* drawer
);