module: rename query -> queryDeprecated
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
26b2351d4b
commit
2e8926d6fa
16 changed files with 33 additions and 33 deletions
|
|
@ -43,7 +43,7 @@ pub const events = .{
|
|||
};
|
||||
|
||||
fn update(core: *mach.Core.Mod, sprite: *Mod, sprite_pipeline: *gfx.SpritePipeline.Mod) !void {
|
||||
var archetypes_iter = sprite_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = sprite_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_sprite_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
@ -69,7 +69,7 @@ fn updatePipeline(
|
|||
const encoder = device.createCommandEncoder(&.{ .label = label });
|
||||
defer encoder.release();
|
||||
|
||||
var archetypes_iter = sprite.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = sprite.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_sprite = &.{
|
||||
.uv_transform,
|
||||
.transform,
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ fn init(sprite_pipeline: *Mod) void {
|
|||
}
|
||||
|
||||
fn deinit(sprite_pipeline: *Mod) void {
|
||||
var archetypes_iter = sprite_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = sprite_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_sprite_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
@ -138,7 +138,7 @@ fn update(core: *mach.Core.Mod, sprite_pipeline: *Mod) !void {
|
|||
// Destroy all sprite render pipelines. We will rebuild them all.
|
||||
deinit(sprite_pipeline);
|
||||
|
||||
var archetypes_iter = sprite_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = sprite_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_sprite_pipeline = &.{
|
||||
.texture,
|
||||
} },
|
||||
|
|
@ -324,7 +324,7 @@ fn preRender(sprite_pipeline: *Mod, core: *mach.Core.Mod) void {
|
|||
const encoder = core.state().device.createCommandEncoder(&.{ .label = label });
|
||||
defer encoder.release();
|
||||
|
||||
var archetypes_iter = sprite_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = sprite_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_sprite_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
@ -367,7 +367,7 @@ fn render(sprite_pipeline: *Mod) !void {
|
|||
sprite_pipeline.state().render_pass = null;
|
||||
|
||||
// TODO(sprite): need a way to specify order of rendering with multiple pipelines
|
||||
var archetypes_iter = sprite_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = sprite_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_sprite_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ const BuiltText = struct {
|
|||
};
|
||||
|
||||
fn update(core: *mach.Core.Mod, text: *Mod, text_pipeline: *gfx.TextPipeline.Mod) !void {
|
||||
var archetypes_iter = text_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = text_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_text_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
@ -97,7 +97,7 @@ fn updatePipeline(
|
|||
var texture_update = false;
|
||||
var num_texts: u32 = 0;
|
||||
var removes = try std.ArrayListUnmanaged(mach.EntityID).initCapacity(allocator, 8);
|
||||
var archetypes_iter = text.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = text.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_text = &.{
|
||||
.transform,
|
||||
.text,
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ pub const BuiltPipeline = struct {
|
|||
};
|
||||
|
||||
fn deinit(text_pipeline: *Mod) void {
|
||||
var archetypes_iter = text_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = text_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_text_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
@ -163,7 +163,7 @@ fn update(core: *mach.Core.Mod, text_pipeline: *Mod) !void {
|
|||
// Destroy all text render pipelines. We will rebuild them all.
|
||||
deinit(text_pipeline);
|
||||
|
||||
var archetypes_iter = text_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = text_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_text_pipeline = &.{
|
||||
.is_pipeline,
|
||||
} },
|
||||
|
|
@ -353,7 +353,7 @@ fn preRender(text_pipeline: *Mod, core: *mach.Core.Mod) void {
|
|||
const encoder = core.state().device.createCommandEncoder(&.{ .label = label });
|
||||
defer encoder.release();
|
||||
|
||||
var archetypes_iter = text_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = text_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_text_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
@ -396,7 +396,7 @@ fn render(text_pipeline: *Mod) !void {
|
|||
text_pipeline.state().render_pass = null;
|
||||
|
||||
// TODO(text): need a way to specify order of rendering with multiple pipelines
|
||||
var archetypes_iter = text_pipeline.entities.query(.{ .all = &.{
|
||||
var archetypes_iter = text_pipeline.entities.queryDeprecated(.{ .all = &.{
|
||||
.{ .mach_gfx_text_pipeline = &.{
|
||||
.built,
|
||||
} },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue