Home | History | Annotate | Download | only in smoke

Lines Matching full:smoke

23 #include "Smoke.h"
40 Smoke::Smoke(const std::vector<std::string> &args)
41 : Game("Smoke", args),
62 Smoke::~Smoke() {}
64 void Smoke::init_workers() {
89 void Smoke::attach_shell(Shell &sh) {
143 void Smoke::detach_shell() {
162 void Smoke::create_render_pass() {
209 void Smoke::create_shader_modules() {
213 #include "Smoke.push_constant.vert.h"
217 #include "Smoke.vert.h"
223 #include "Smoke.frag.h"
229 void Smoke::create_descriptor_set_layout() {
246 void Smoke::create_pipeline_layout() {
267 void Smoke::create_pipeline() {
344 void Smoke::create_frame_data(int count) {
359 void Smoke::destroy_frame_data() {
378 void Smoke::create_fences() {
386 void Smoke::create_command_buffers() {
428 void Smoke::create_buffers() {
446 void Smoke::create_buffer_memory() {
481 void Smoke::create_descriptor_sets() {
534 void Smoke::attach_swapchain() {
543 void Smoke::detach_swapchain() {
552 void Smoke::prepare_viewport(const VkExtent2D &extent) {
566 void Smoke::prepare_framebuffers(VkSwapchainKHR swapchain) {
602 void Smoke::update_camera() {
616 void Smoke::draw_object(const Simulation::Object &obj, FrameData &data, VkCommandBuffer cmd) const {
639 void Smoke::update_simulation(const Worker &worker) {
643 void Smoke::draw_objects(Worker &worker) {
675 void Smoke::on_key(Key key) {
697 void Smoke::on_tick() {
703 void Smoke::on_frame(float frame_pred) {
775 Smoke::Worker::Worker(Smoke &smoke, int index, int object_begin, int object_end)
776 : smoke_(smoke),
780 tick_interval_(1.0f / smoke.settings_.ticks_per_second),
783 void Smoke::Worker::start() {
785 thread_ = std::thread(Smoke::Worker::thread_loop, this);
788 void Smoke::Worker::stop() {
798 void Smoke::Worker::update_simulation() {
814 void Smoke::Worker::draw_objects(VkFramebuffer fb) {
834 void Smoke::Worker::wait_idle() {
841 void Smoke::Worker::update_loop() {